| 189 | /// input is undefined. |
| 190 | /// |
| 191 | extern "C" void |
| 192 | fail_entry(bsl::safe_u64::value_type const errc, bsl::safe_u64::value_type const addr) noexcept |
| 193 | { |
| 194 | /// NOTE: |
| 195 | /// - Call into the fast fail handler. This entry point serves as a |
| 196 | /// trampoline between C and C++. Specifically, the microkernel |
| 197 | /// cannot call a member function directly, and can only call |
| 198 | /// a C style function. |
| 199 | /// |
| 200 | |
| 201 | auto const ret{dispatch_fail( // -- |
| 202 | g_mut_gs, // -- |
| 203 | g_mut_tls, // -- |
| 204 | g_mut_sys, // -- |
| 205 | g_mut_intrinsic, // -- |
| 206 | g_mut_vp_pool, // -- |
| 207 | g_mut_vs_pool, // -- |
| 208 | bsl::to_u64(errc), // -- |
| 209 | bsl::to_u64(addr))}; |
| 210 | |
| 211 | if (bsl::unlikely(!ret)) { |
| 212 | bsl::print<bsl::V>() << bsl::here(); |
| 213 | return bf_control_op_exit(); |
| 214 | } |
| 215 | |
| 216 | /// NOTE: |
| 217 | /// - This code should never be reached. The fast fail handler should |
| 218 | /// always call one of the "run" ABIs to return back to the |
| 219 | /// microkernel when a fast fail is finished. If this is called, it |
| 220 | /// is because the fast fail handler returned with an error. |
| 221 | /// |
| 222 | |
| 223 | return bf_control_op_exit(); |
| 224 | } |
| 225 | |
| 226 | /// <!-- description --> |
| 227 | /// @brief Implements the VMExit entry function. This is registered |
nothing calls this directly
no test coverage detected