Use devmap offset for physmap on aarch64

This commit is contained in:
Jeremy Soller
2021-01-14 12:35:27 -07:00
parent 1214f3dcdc
commit cb6b44d69e
+2 -1
View File
@@ -33,7 +33,8 @@ impl Arch for AArch64Arch {
//TODO: Separate the two?
const ENTRY_FLAG_NO_EXEC: usize = 0b11 << 53;
const PHYS_OFFSET: usize = Self::PAGE_NEGATIVE_MASK + (Self::PAGE_ADDRESS_SIZE >> 1); // PML4 slot 256 and onwards
//TODO: adjust to match x86_64?
const PHYS_OFFSET: usize = 0xfffffe0000000000;
unsafe fn init() -> &'static [MemoryArea] {
unimplemented!("AArch64Arch::init unimplemented");