blob: 216a90ca6cad02fd15576304268be1d017613b1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
pub mod interrupts;
/// The size of a page of memory.
pub const PAGE_SIZE: usize = 4096;
/// The number of bits in the size of a page of memory.
pub const PAGE_SIZE_BITS: usize = 12;
/// Halts the hart.
pub fn sleep_forever() -> ! {
loop {
unsafe { core::arch::asm!("wfi") }
}
}
|