diff options
Diffstat (limited to 'api/kc/core')
| -rw-r--r-- | api/kc/core/memory.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/api/kc/core/memory.h b/api/kc/core/memory.h new file mode 100644 index 0000000..d6f1cd6 --- /dev/null +++ b/api/kc/core/memory.h @@ -0,0 +1,15 @@ +/* + * kernel component core - memory management interface + */ +#pragma once + +#include <kc/kc.h> + +#include <stdint.h> + +typedef uint64_t kc_phys_addr; +typedef void * kc_virt_addr; + +kc_phys_addr kcc_page_alloc(void); +void kcc_page_free(kc_phys_addr page); + |
