summaryrefslogtreecommitdiff
path: root/src/kernel/mem.c
AgeCommit message (Collapse)Author
2021-08-22fix almost all compiler warningsdzwdz
2021-08-22await() 2: pass the exit messagedzwdz
2021-08-11abstract out iterating over virtual memorydzwdz
most syscalls will have to do this to copy memory around or whatever. it's pretty ugly too, but i can't come up with a better abstraction...
2021-07-31kmalloc() and kfree() stubsdzwdz
2021-07-20global PAGE_MASK definedzwdz
it's pretty useful, so it makes sense to define it alongside PAGE_SIZE
2021-07-18clean up the linker script, remove duplicate labelsdzwdz
2021-07-18move all kernel sources to src/kernel/dzwdz
2021-07-17detect the highest used memory address, and only allocate pages above itdzwdz
2021-07-17rename _kernel_end to _bss_enddzwdz
2021-07-10a sensible source structuredzwdz
The idea is that src/kernel/ is only allowed to interface with the hardware using whatever's defined in src/arch/generic.h. I'll probably write a small script for checking this later on. This is a giant commit so I've probably fucked something up. It boots fine on Bochs and QEMU, so at least there's that.
2021-07-10separate the source code from object files; more modular Makefiledzwdz