diff options
| author | Ada Christine <adachristine18@gmail.com> | 2022-02-20 23:50:43 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2022-02-20 23:50:43 +0000 |
| commit | 6002ec7d841d91d85cc55733c539594c97fc2e30 (patch) | |
| tree | 951daac374219fcf6d49af9195383443e8f468f0 /kc/api/core | |
| parent | 0625188d3e925136645f2a99f6280dbf689dc0e2 (diff) | |
moving files around
Diffstat (limited to 'kc/api/core')
| -rw-r--r-- | kc/api/core/memory.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kc/api/core/memory.h b/kc/api/core/memory.h new file mode 100644 index 0000000..b428b15 --- /dev/null +++ b/kc/api/core/memory.h @@ -0,0 +1,15 @@ +/* + * kernel component core - memory management interface + */ +#pragma once + +#include <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); + |
