Michael Shaw
7303bcc3e2
mem.c: cleanup
2023-04-19 17:37:18 -04:00
Michael Shaw
5b79d54440
mem: fix next_level function
...
add the OR hhdm_start to the return address since this returns a
(uint64_t *) and not a paddr_t
2023-04-19 17:35:21 -04:00
Michael Shaw
fc08269219
mem: clarify comments on buddy allocator
2023-04-18 14:12:21 -04:00
Michael Shaw
a08a7dd1a4
mem: set buddy_alloc_helper minimum size to 0x1000 bytes
2023-04-14 12:56:11 -04:00
Michael Shaw
a1329f092b
mem: add comment explaining buddy allocator concept
2023-04-14 12:50:56 -04:00
Michael Shaw
4595f35e4f
mem: rename mem_region_header to buddy_region_header
2023-04-14 12:47:30 -04:00
Michael Shaw
98c99b1780
mem: reorganize buddy.c
2023-04-14 09:03:01 -04:00
Michael Shaw
b8fa30c8ed
mem: change buddy allocator api
...
the buddy allocator now returns HHDM addresses as void* rather than
zero-based adddresses as paddr_t. it also automatically searches regions
now, rather than requiring a (struct mem_region_header *) for each
alloc/free
2023-04-13 17:36:04 -04:00
Michael Shaw
a506cc481e
mem: removed unncessary messages and allocation
2023-04-13 13:12:21 -04:00
Michael Shaw
a089d09322
add todo lol
2023-04-12 19:10:39 -04:00
Michael Shaw
758d120903
mem: remove non-compliant section
2023-04-12 19:09:20 -04:00
Michael Shaw
062d14bde3
mem: remove buddy_alloc tests
2023-04-12 18:23:24 -04:00
Michael Shaw
8d538db27d
mem: add buddy_free
2023-04-12 18:21:16 -04:00
Michael Shaw
bd0ded5d61
buddy_alloc: fix problem with splitting pages
2023-04-12 16:46:15 -04:00
Michael Shaw
4f4af0946d
mem: implement buddy allocator
2023-04-12 13:58:22 -04:00
Michael Shaw
9a4ff385bd
pic: enable legacy pic serial interrupts
2023-03-14 04:25:06 -04:00
Michael Shaw
894916b407
mem: add print for memory region types
2023-03-13 04:50:37 -04:00
Michael Shaw
df048d9f11
Actually remove the line
2023-03-10 21:35:10 -05:00
Michael Shaw
eb5a22a0d0
Remove currently unused variable
2023-03-10 21:34:44 -05:00
Michael Shaw
806ece61f9
mem: mv mem/pfa.c -> mem/early.c
2023-03-09 02:00:07 -05:00
Michael Shaw
d5f388208c
mem: formatting fix
2023-03-09 01:59:21 -05:00
Michael Shaw
84b40e3eda
mem: add type paddr_t
2023-03-05 17:10:08 -05:00
Michael Shaw
bb76bcac6c
Modify to allow unmapping easily
2023-03-05 17:02:02 -05:00
Michael Shaw
ba3434b930
fix kmap entry in
2023-03-04 22:47:31 -05:00
Michael Shaw
705abf3234
mem: fixed memory mapping bugs with kmap
...
function `kmap` is now capable of reliably mapping physical addresses to
virtual addresses
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2023-03-04 22:42:08 -05:00
Michael Shaw
ffddd592da
mem: begin work on pager
2023-03-04 16:46:33 -05:00
Michael Shaw
2b9d76d015
mem: add page entry type
2023-03-01 14:20:13 -05:00