From 250da95d765a1bc09a51ffee9bbcbe18571d7a51 Mon Sep 17 00:00:00 2001 From: Ry Date: Thu, 27 Oct 2022 23:08:18 -0700 Subject: [PATCH] Initialize the memory allocator with a correct bottom of memory --- kernel/allocator.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/allocator.asm b/kernel/allocator.asm index 5905d73..1b03cc2 100644 --- a/kernel/allocator.asm +++ b/kernel/allocator.asm @@ -12,7 +12,7 @@ initialize_allocator: push r0 push r1 - mov [free_list_head], kernel_bottom + mov [free_list_head], 0x0000FFFF ; set the free block size to MEMORY_TOP - [free_list_head] mov r0, [free_list_head]