Initial commit - slab allocator, kmalloc, other re

factors
This commit is contained in:
ssimnb 2026-01-22 08:05:47 +01:00
parent 1dd7b8b07f
commit 4e40a040dd
39 changed files with 863 additions and 412 deletions

View file

@ -1,10 +1,7 @@
#include "error.h"
#include <stdint.h>
void kernel_heap_init();
void heap_free(uint64_t *addr);
uint64_t *heap_alloc();
void _kmalloc_init(void);
void *kmalloc(uint64_t size);
void kfree(void *addr);
#define KERNEL_HEAP_SIZE 0x10000000
kstatus kfree(void *addr);