From 7f350e7ee1c2c38e5ac0b6c22c17388f6c78f0b5 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 10 Sep 2025 13:28:28 -0400 Subject: refactor paging code. regression on loading init program --- arch/x86_64/boot/limine/memorymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/x86_64/boot') diff --git a/arch/x86_64/boot/limine/memorymap.c b/arch/x86_64/boot/limine/memorymap.c index ec0f545..43aecf7 100644 --- a/arch/x86_64/boot/limine/memorymap.c +++ b/arch/x86_64/boot/limine/memorymap.c @@ -31,7 +31,7 @@ boot_populate_untyped(void) if(entry->type != LIMINE_MEMMAP_USABLE) continue; size_t table_index = s_untyped_dir.self.data++; - uintmax_t *untyped_data = vmem_phys_tovirt(entry->base); + uintmax_t *untyped_data = pptr_tovirt_ident(entry->base); objdir_entry_t *table_entry = &s_untyped_dir.entries[table_index]; table_entry->type = KO_MEMORY_UNTYPED; -- cgit v1.2.1