| 343 | /// input is undefined. |
| 344 | /// |
| 345 | extern "C" void |
| 346 | fail_entry(bsl::safe_u64::value_type const errc, bsl::safe_u64::value_type const addr) noexcept |
| 347 | { |
| 348 | /// NOTE: |
| 349 | /// - Call into the fast fail handler. This entry point serves as a |
| 350 | /// trampoline between C and C++. Specifically, the microkernel |
| 351 | /// cannot call a member function directly, and can only call |
| 352 | /// a C style function. |
| 353 | /// |
| 354 | |
| 355 | auto const ret{dispatch_fail( // -- |
| 356 | g_mut_gs, // -- |
| 357 | g_mut_tls, // -- |
| 358 | g_mut_sys, // -- |
| 359 | g_mut_intrinsic, // -- |
| 360 | g_mut_vp_pool, // -- |
| 361 | g_mut_vs_pool, // -- |
| 362 | bsl::to_u64(errc), // -- |
| 363 | bsl::to_u64(addr))}; |
| 364 | |
| 365 | if (bsl::unlikely(!ret)) { |
| 366 | bsl::print<bsl::V>() << bsl::here(); |
| 367 | return bf_control_op_exit(); |
| 368 | } |
| 369 | |
| 370 | /// NOTE: |
| 371 | /// - This code should never be reached. The fast fail handler should |
| 372 | /// always call one of the "run" ABIs to return back to the |
| 373 | /// microkernel when a fast fail is finished. If this is called, it |
| 374 | /// is because the fast fail handler returned with an error. |
| 375 | /// |
| 376 | |
| 377 | return bf_control_op_exit(); |
| 378 | } |
| 379 | |
| 380 | /// <!-- description --> |
| 381 | /// @brief Implements the VMExit entry function. This is registered |
nothing calls this directly
no test coverage detected