MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / exit_qemu

Function exit_qemu

kernel/src/lib.rs:107–114  ·  view source on GitHub ↗
(exit_code: QemuExitCode)

Source from the content-addressed store, hash-verified

105}
106
107pub fn exit_qemu(exit_code: QemuExitCode) {
108 use x86_64::instructions::port::Port;
109
110 unsafe {
111 let mut port = Port::new(0xf4);
112 port.write(exit_code as u32);
113 }
114}
115
116// Allocator error handler
117#[alloc_error_handler]

Callers 3

test_runnerFunction · 0.85
test_panic_handlerFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by 3

test_runnerFunction · 0.68
test_panic_handlerFunction · 0.68