1 2 3 4 5 6 7 8 9
#include "kmalloc.h" #include <stddef.h> static uint8_t data[1024*1024*8]; //8MB kernel memory managed by kmalloc uint32_t kmalloc(uint32_t size) { return NULL; }