aboutsummaryrefslogtreecommitdiff
path: root/mirai.old/common/constants/pmm.zig
blob: 75cd03218b53505662475cb061bd67b247aecdbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Physical memory manager constants

pub const MEMORY_AVAILABLE: u32 = 1;

pub const FIRST_MB: u64 = 0x100000;
pub const KERNEL_BASE: u64 = 0x100000;
pub const KERNEL_MAP_END: u64 = 0x10000000; // 256MB

pub const MMIO_FRAMEBUFFER_BASE: u64 = 0x80000000;
pub const MMIO_FRAMEBUFFER_SIZE: u64 = 0x10000000;
pub const MMIO_PCI_BASE: u64 = 0xE0000000;
pub const MMIO_PCI_SIZE: u64 = 0x10000000;

pub const BITMAP_MARK_USED: u8 = 0xFF;