MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / halt

Function halt

src/time.rs:59–67  ·  view source on GitHub ↗

Halt

()

Source from the content-addressed store, hash-verified

57
58// Halt
59pub fn halt()
60{
61 let disabled = !interrupts::are_enabled();
62 interrupts::enable_and_hlt();
63 if disabled
64 {
65 interrupts::disable();
66 }
67}
68
69
70// Initialization

Callers 3

sleepFunction · 0.85
readcharFunction · 0.85
readlnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected