mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
mmu: destroy fixes
This commit is contained in:
@@ -112,8 +112,8 @@ static bool add_page(pagetableptr_t top, void *vaddr, uint64_t entry, int depth)
|
||||
}
|
||||
|
||||
static void destroy(uint64_t *table, int depth) {
|
||||
for (int i = 0; i < 512; ++i) {
|
||||
void *addr = (void *)((*table & ADDRMASK));
|
||||
for (int i = 0; i < (depth == 3 ? 256 : 512); ++i) {
|
||||
void *addr = (void *)((table[i] & ADDRMASK));
|
||||
if (addr == NULL)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user