mem: add kmalloc and kfree

This commit is contained in:
Michael Shaw 2023-04-20 17:03:10 -04:00
commit 577779f8ae
4 changed files with 104 additions and 1 deletions

View file

@ -14,6 +14,11 @@
#include <kernel/bitwise.h>
#define PACKED __attribute__((packed))
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define KB 1024
#define MB (1024 * KB)
#define GB (1024 * MB)
typedef uintptr_t paddr_t;