git.cappig.dev / apheleiaOS.git master

a88f6ea69dac18d5b5c7f1b479bf9a7c7d055a82 master
cappig <[email protected]> ยท 1 year ago
Memory/paging fixes, new elf loader

* Laying the groundwork for a scheduler this commit fixes a whole bunch
  of issues related to paging and VMM.
* Simplify and improve load_elf(...) and parse/elf.
* Add the ability to debug memory management
* Some smaller style and syntax fixes
25 files changed, 175 insertions, 125 deletions
.gitignore +2 -0
boot/bios/load_elf.c +13 -49
boot/bios/main.c +5 -2
boot/bios/memory.c +6 -3
boot/bios/paging.c +12 -9
build/toolchain.mk +1 -1
kernel/arch/cmos.h +1 -0
kernel/arch/idt.c +0 -2
kernel/arch/stacktrace.c +10 -4
kernel/arch/stacktrace.h +2 -0
kernel/drivers/initrd.c +0 -1
kernel/drivers/mbr.c +1 -0
kernel/drivers/pci.c +1 -1
kernel/mem/physical.c +9 -0
kernel/mem/virtual.c +42 -12
kernel/video/tty.c +1 -0
libs/alloc/bitmap.c +3 -3
libs/alloc/bitmap.h +1 -1
libs/parse/elf.c +26 -7
libs/parse/elf.h +11 -6
libs/x86/asm.h +2 -4
libs/x86/e820.c +14 -8
libs/x86/e820.h +1 -1
libs/x86/paging.h +10 -10
utils/qemu.mk +1 -1