aarch64: ensure module base address starts aligned

This commit is contained in:
K. Lange 2023-04-18 22:45:19 +09:00
parent f470c5fcc4
commit ffb7bc36bb

View File

@ -948,4 +948,7 @@ void mmu_init(uintptr_t memaddr, size_t memsize, uintptr_t firstFreePage, uintpt
lowest_available = (firstFreePage + bytesOfFrames) - memaddr;
module_base_address = endOfRamDisk + MODULE_BASE_START;
if (module_base_address & PAGE_LOW_MASK) {
module_base_address = (module_base_address & PAGE_SIZE_MASK) + PAGE_SIZE;
}
}