Michael Shaw
4239ca1b7e
mem: replace mem_initialized bool with function pointer
2023-04-20 15:41:19 -04:00
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