| 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 extid{syscall::BF_INVALID_ID}; |
| 116 | syscall::bf_debug_op_dump_ext(extid); |
| 117 | } |
| 118 | |
| 119 | // id out of range |
| 120 | { |
| 121 | constexpr auto extid{(bsl::to_u16(HYPERVISOR_MAX_EXTENSIONS) + one).checked()}; |
| 122 | syscall::bf_debug_op_dump_ext(extid); |
| 123 | } |
| 124 | |
| 125 | // success |
| 126 | { |
| 127 | syscall::bf_debug_op_dump_ext({}); |
| 128 | } |
| 129 | |
| 130 | bsl::debug() << "success. remaining backtrace is expected\n" << bsl::here(); |
| 131 | return bf_control_op_exit(); |
| 132 | } |
| 133 | |
| 134 | /// <!-- description --> |
| 135 | /// @brief Implements the fast fail entry function. This is registered |
nothing calls this directly
no test coverage detected