diff options
author | Anton Kling <anton@kling.gg> | 2024-04-15 20:34:58 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-15 20:34:58 +0200 |
commit | 62ba2a9ab01e5f2a9b1cd325af8d3112702b7713 (patch) | |
tree | 0926fbbc9d8c0058ee0f37e4f8691a554ca647e3 /kernel/arch | |
parent | 3acd8cf6c8e41c1e1228c60ac5c4ea0f69e7aff5 (diff) |
Bug fix and cleanup.
Diffstat (limited to 'kernel/arch')
-rw-r--r-- | kernel/arch/i386/mmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/arch/i386/mmu.c b/kernel/arch/i386/mmu.c index ce20208..3e8570d 100644 --- a/kernel/arch/i386/mmu.c +++ b/kernel/arch/i386/mmu.c @@ -712,6 +712,7 @@ void paging_init(u64 memsize, multiboot_info_t *mb) { available_memory_kb = memsize; + num_of_frames = max(num_of_frames, num_array_frames); void *new = kmalloc(num_of_frames * sizeof(u32)); memset(new, 0xFF, num_of_frames * sizeof(u32)); memcpy(new, tmp_small_frames, num_array_frames * sizeof(u32)); |