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

Function bootstrap_entry

kernel/integration/bf_debug_op_write_str.cpp:107–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 /// @param ppid0 the physical process to bootstrap
106 ///
107 extern "C" void
108 bootstrap_entry(bsl::safe_u16::value_type const ppid0) noexcept
109 {
110 bsl::discard(ppid0);
111 constexpr auto size{bsl::safe_umx::max_value()};
112
113 // create with invalid handle
114 {
115 constexpr auto msg1{""};
116 constexpr auto msg2{"the cow is blue for this is true\n"};
117
118 syscall::bf_debug_op_write_str_impl(nullptr, size.get());
119 syscall::bf_debug_op_write_str(msg1, bsl::builtin_strlen(msg1).get());
120 syscall::bf_debug_op_write_str(msg2, bsl::builtin_strlen(msg2).get());
121 }
122
123 constexpr auto bad_ptr{0x42_u64};
124 auto const *const ptr{reinterpret_cast<bsl::cstr_type>(bad_ptr.get())}; // NOLINT
125
126 bsl::debug() << "success. remaining backtrace is expected\n" << bsl::here();
127 syscall::bf_debug_op_write_str(ptr, size.get());
128 }
129
130 /// <!-- description -->
131 /// @brief Implements the fast fail entry function. This is registered

Callers

nothing calls this directly

Calls 2

bf_debug_op_write_strFunction · 0.50

Tested by

no test coverage detected