mem: add kmalloc and kfree
This commit is contained in:
parent
74a58d6641
commit
577779f8ae
4 changed files with 104 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue