debugging offset bug: with +KERNSTART for unmapp
no abort while zeroing entry
returns from mem_alloc
pt entries remain unchanged tho (not unmapped)
debugging offset bug: w/o +KERNSTART for unmap
no abort while zeroing entries
allocates correct block in mem_alloc but aborts while returning
entries zeroed out correctly
abort doesn't find handler and branches to prefect loaction but still can't find handler
debugging offset bug: w/o offset using phys pt addr -> ditto as vpt
debugging offset/relocation bug: phys pt addr + KERNSTART
aborts when zeroing entry
*** jumps to handler but at low pc and then returns to high pc in main
successfully allocates in mem_alloc and returns
entries not zeroed out tho (not unmapped)
possible fix: handle unmap in handler
debugging: entry addr shouldn't need offset -> debug return from mem_alloc
woah seems to work now without any offset to virtual uart addr or pt addr
fixed relocation bug, MAYBE
need to flush TLB right after setting up new stack, aborts otherwise
using interrupt macros (needed fixing), other small fixes
testing hw_handlers with vm: only works if first MB is unmapped
that is where vector tables are setup
so need to enable high vectors
* last MB, where high vectors are, already mapped now
high vector tables work
need to add offset since handler function addresses are the ones when initially loaded
moved stacks to new kern DS location, 4K below high vector tables
implemented heap manager using a byte array
signed ints as block header and footer
+ve == free
-ve == allocated
found a fix for global offset table bug (works w/o argparse)
load kernel at low address and link at high
added heap consistency check function and a simple test function
will add more tests in the test framework later
merged argparse into virtual memory
ready to merge with dev
implemented heap manager: umalloc, ufree, kmalloc, kfree
fixed relocation bug using linker script
hw_handlers run from high vector table wo any offset
breaks some uart functionality after boot, using virtual uart anyways
need some way to get parsed args in main
updates from virtual memory