| 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 one{bsl::safe_u16::magic_1()}; |
| 112 | |
| 113 | // invalid id |
| 114 | { |
| 115 | constexpr auto vsid{syscall::BF_INVALID_ID}; |
| 116 | syscall::bf_debug_op_dump_vs(vsid); |
| 117 | } |
| 118 | |
| 119 | // id out of range |
| 120 | { |
| 121 | constexpr auto vsid{(bsl::to_u16(HYPERVISOR_MAX_VSS) + one).checked()}; |
| 122 | syscall::bf_debug_op_dump_vs(vsid); |
| 123 | } |
| 124 | |
| 125 | // id never allocated |
| 126 | { |
| 127 | constexpr auto vsid{(bsl::to_u16(HYPERVISOR_MAX_VSS) - one).checked()}; |
| 128 | syscall::bf_debug_op_dump_vs(vsid); |
| 129 | } |
| 130 | |
| 131 | // success |
| 132 | { |
| 133 | auto const vpid{g_mut_sys.bf_vp_op_create_vp({})}; |
| 134 | auto const vsid{g_mut_sys.bf_vs_op_create_vs(vpid, {})}; |
| 135 | syscall::bf_debug_op_dump_vs(vsid); |
| 136 | } |
| 137 | |
| 138 | bsl::debug() << "success. remaining backtrace is expected\n" << bsl::here(); |
| 139 | return bf_control_op_exit(); |
| 140 | } |
| 141 | |
| 142 | /// <!-- description --> |
| 143 | /// @brief Implements the fast fail entry function. This is registered |
nothing calls this directly
no test coverage detected