Michael Shaw
159ceec0a2
mem: move slab min size to macro
...
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2023-04-21 12:02:02 -04:00
Michael Shaw
addf96aae7
mem: fix bug with slab_create
...
before this would overwrite into the next region, which would cause an
error at `buddy_alloc_helper` as the region overridden was the `len`
field of a `struct buddy_free_list`
2023-04-20 21:43:43 -04:00
Michael Shaw
4db95954a3
change SLAB_MIN_COUNT to 64
2023-04-20 19:31:25 -04:00
Michael Shaw
794c328809
mem: update slab allocator
...
the slab allocator will now free slabs if they are not the first slab
for a given size and they are empty
2023-04-20 19:22:07 -04:00
Michael Shaw
f1f81a876c
mem: make slab_range static inline
2023-04-20 17:04:42 -04:00
Michael Shaw
577779f8ae
mem: add kmalloc and kfree
2023-04-20 17:03:10 -04:00
Michael Shaw
74a58d6641
mem: add basic slab allocator
2023-04-20 16:06:49 -04:00