MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / fail_entry

Function fail_entry

kernel/integration/bf_debug_op_dump_ext.cpp:147–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

dispatch_failFunction · 0.50
bf_control_op_exitFunction · 0.50

Tested by

no test coverage detected