MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / exit_code_encode

Function exit_code_encode

os/src/boards/qemu.rs:87–89  ·  view source on GitHub ↗

Encode the exit code using EXIT_FAILURE_FLAG.

(code: u32)

Source from the content-addressed store, hash-verified

85
86/// Encode the exit code using EXIT_FAILURE_FLAG.
87const fn exit_code_encode(code: u32) -> u32 {
88 (code << 16) | EXIT_FAILURE_FLAG
89}
90
91impl RISCV64 {
92 /// Create an instance.

Callers 2

qemu.rsFile · 0.85
exitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected