| 167 | /// input is undefined. |
| 168 | /// |
| 169 | extern "C" void |
| 170 | fail_entry(bsl::safe_u64::value_type const errc, bsl::safe_u64::value_type const addr) noexcept |
| 171 | { |
| 172 | /// NOTE: |
| 173 | /// - Call into the fast fail handler. This entry point serves as a |
| 174 | /// trampoline between C and C++. Specifically, the microkernel |
| 175 | /// cannot call a member function directly, and can only call |
| 176 | /// a C style function. |
| 177 | /// |
| 178 | |
| 179 | auto const ret{dispatch_fail( // -- |
| 180 | g_mut_gs, // -- |
| 181 | g_mut_tls, // -- |
| 182 | g_mut_sys, // -- |
| 183 | g_mut_intrinsic, // -- |
| 184 | g_mut_vp_pool, // -- |
| 185 | g_mut_vs_pool, // -- |
| 186 | bsl::to_u64(errc), // -- |
| 187 | bsl::to_u64(addr))}; |
| 188 | |
| 189 | if (bsl::unlikely(!ret)) { |
| 190 | bsl::print<bsl::V>() << bsl::here(); |
| 191 | return bf_control_op_exit(); |
| 192 | } |
| 193 | |
| 194 | /// NOTE: |
| 195 | /// - This code should never be reached. The fast fail handler should |
| 196 | /// always call one of the "run" ABIs to return back to the |
| 197 | /// microkernel when a fast fail is finished. If this is called, it |
| 198 | /// is because the fast fail handler returned with an error. |
| 199 | /// |
| 200 | |
| 201 | return bf_control_op_exit(); |
| 202 | } |
| 203 | |
| 204 | /// <!-- description --> |
| 205 | /// @brief Implements the VMExit entry function. This is registered |
nothing calls this directly
no test coverage detected