Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
59
pub 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
sleep
Function · 0.85
readchar
Function · 0.85
readln
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected