| 231 | /// input is undefined. |
| 232 | /// |
| 233 | extern "C" void |
| 234 | fail_entry(bsl::safe_u64::value_type const errc, bsl::safe_u64::value_type const addr) noexcept |
| 235 | { |
| 236 | /// NOTE: |
| 237 | /// - Call into the fast fail handler. This entry point serves as a |
| 238 | /// trampoline between C and C++. Specifically, the microkernel |
| 239 | /// cannot call a member function directly, and can only call |
| 240 | /// a C style function. |
| 241 | /// |
| 242 | |
| 243 | auto const ret{dispatch_fail( // -- |
| 244 | g_mut_gs, // -- |
| 245 | g_mut_tls, // -- |
| 246 | g_mut_sys, // -- |
| 247 | g_mut_intrinsic, // -- |
| 248 | g_mut_vp_pool, // -- |
| 249 | g_mut_vs_pool, // -- |
| 250 | bsl::to_u64(errc), // -- |
| 251 | bsl::to_u64(addr))}; |
| 252 | |
| 253 | if (bsl::unlikely(!ret)) { |
| 254 | bsl::print<bsl::V>() << bsl::here(); |
| 255 | return bf_control_op_exit(); |
| 256 | } |
| 257 | |
| 258 | /// NOTE: |
| 259 | /// - This code should never be reached. The fast fail handler should |
| 260 | /// always call one of the "run" ABIs to return back to the |
| 261 | /// microkernel when a fast fail is finished. If this is called, it |
| 262 | /// is because the fast fail handler returned with an error. |
| 263 | /// |
| 264 | |
| 265 | return bf_control_op_exit(); |
| 266 | } |
| 267 | |
| 268 | /// <!-- description --> |
| 269 | /// @brief Implements the VMExit entry function. This is registered |
nothing calls this directly
no test coverage detected