fs: fix bugs that broke processes in userspace
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
c8791b6718
commit
b603eacbb7
3 changed files with 6 additions and 7 deletions
|
|
@ -105,7 +105,7 @@ static void map_hhdm_zones(pgd_t *pgd_table)
|
|||
}
|
||||
|
||||
hhdm_end = top_paddr;
|
||||
device_base = ALIGN_UP(hhdm_end + PAGE_SIZE, PAGE_SIZE);
|
||||
device_base = ALIGN_UP((u64)TO_VIRT(hhdm_end) + PAGE_SIZE, PAGE_SIZE);
|
||||
|
||||
for (paddr_t p = 0; p < top_paddr; p += 0x200000) {
|
||||
vaddr_t v = (vaddr_t)TO_VIRT(p);
|
||||
|
|
|
|||
Loading…
Reference in a new issue