Module abyss::addressing

source ·
Expand description

Memory abstraction.

KEOS maps kernel virtual memory directly to physical memory. The first page of kernel virtual memory is mapped to the first frame of physical memory, the second page to the second frame, and so on. Thus, physical address and kernel virtual address can be calculated by simpling adding or substracting constant offset.

Structs

Physical address
Virtual address

Constants

Mask for page offset.
Shift amount to get page index.
Page size.