Module kernel_hal::mem
source · [−]Expand description
Physical memory operations.
Structs
A 4K size physical frame.
The global physical frame contains all zeros.
Functions
Flush the physical frame.
Returns all free physical memory regions.
Convert physical address to virtual address.
Copy content of physical memory src
to dst
with len
bytes.
Read physical memory from paddr
to buf
.
Write physical memory to paddr
from buf
.
Zero physical memory at [paddr, paddr + len)
.
Convert virtual address to physical address.