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