git.cappig.dev / apheleiaOS.git master

6b011f0e08acea9878bbd71adce5803ba0aeb1a4 master
cappig <[email protected]> ยท 2 years ago
Add RTC/CMOS, PCI discovery, fix load_elf and libc

* Add CMOS reading functions and read time from the RTC
* Probe all slots and record discovered PCI devices
* Fix load_elf not loading BSS section
* Fix strtok_r. Improve some other libc functions
* Fix list foreach, and append
24 files changed, 420 insertions, 47 deletions
boot/bios/load_elf.c +5 -5
kernel/arch/cmos.c created
kernel/arch/cmos.h created
kernel/arch/gdt.c +1 -0
kernel/arch/idt.c +7 -8
kernel/arch/idt.h +2 -0
kernel/arch/idt_stubs.asm +1 -0
kernel/arch/pci.c created
kernel/arch/pci.h created
kernel/arch/pic.c +1 -1
kernel/boot.asm +0 -1
kernel/main.c +21 -5
kernel/mem/heap.c +1 -3
kernel/mem/physical.c +11 -2
kernel/mem/physical.h +3 -0
libs/base/macros.h +5 -3
libs/boot/mbr.h created
libs/data/list.c +3 -2
libs/data/list.h +2 -4
libs/libc/string.c +7 -1
libs/libc/time.c +3 -5
libs/libc_ext/stdlib.c +8 -0
libs/libc_ext/stdlib.h +3 -0
libs/libc_ext/string.c +15 -7