From 2646f8b74b4bed0d692c1d14f8ad6355cfb02899 Mon Sep 17 00:00:00 2001 From: Sam Tebbs Date: Wed, 22 Apr 2020 23:56:16 +0100 Subject: [PATCH] Start kernel VMM at second block --- src/kernel/vmm.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/vmm.zig b/src/kernel/vmm.zig index 63a0270..e705b9e 100644 --- a/src/kernel/vmm.zig +++ b/src/kernel/vmm.zig @@ -345,7 +345,7 @@ pub fn init(mem_profile: *const mem.MemProfile, mb_info: *multiboot.multiboot_in log.logInfo("Init vmm\n", .{}); defer log.logInfo("Done vmm\n", .{}); - var vmm = try VirtualMemoryManager(arch.VmmPayload).init(0, 0xFFFFFFFF, allocator, arch.VMM_MAPPER, arch.KERNEL_VMM_PAYLOAD); + var vmm = try VirtualMemoryManager(arch.VmmPayload).init(BLOCK_SIZE, 0xFFFFFFFF, allocator, arch.VMM_MAPPER, arch.KERNEL_VMM_PAYLOAD); // Map in kernel // Calculate start and end of mapping