summaryrefslogtreecommitdiff
path: root/api/kc/core/memory.h
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-02-04 10:41:24 +0000
committerAda Christine <adachristine18@gmail.com>2022-02-04 10:41:24 +0000
commit7b91c46a8ebf38b2c1c80c1f1e63c4d4dfd10640 (patch)
treed1ecf22568d6de100c5dce601b8166c8abbae2b7 /api/kc/core/memory.h
parentf0c062df0c2a674d67af12eb5e18f22bd8412c15 (diff)
header reworking, beginning memory.c refactoring
Diffstat (limited to 'api/kc/core/memory.h')
-rw-r--r--api/kc/core/memory.h15
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);
+