From a77b79c1959a134764b88cfe70411d109c6c0354 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Sun, 23 Feb 2020 03:35:26 +1100 Subject: Switched the physical memory allocator to a bitmap table. Previously, page allocations were recorded by marking entries in the dummy page tables 'flow' and 'fupp'. This approach was not very memory efficient, since 4-bytes were used to record each page. Now, a bitmap table is used, where every bit represents a page (every byte therefore representing 8 pages). This approach also shaves some CPU time during allocation, since 8 pages can be checked at a time by testing whole bytes. --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index aca4cab..fdd1362 100644 --- a/Makefile +++ b/Makefile @@ -21,9 +21,7 @@ clean: rm -f $(TARGET) run: $(TARGET) - #qemu-system-x86_64 -s -kernel $(TARGET) -drive file=hd.img,format=raw -serial stdio - #qemu-system-x86_64 -s -kernel $(TARGET) -serial stdio - qemu-system-x86_64 -s -kernel $(TARGET) -nographic -curses + qemu-system-x86_64 -s -kernel $(TARGET) -serial stdio #qemu-system-x86_64 -s -S -kernel $(TARGET) -drive file=hd.img,format=raw .FORCE: -- cgit v1.3