summaryrefslogtreecommitdiff
path: root/src/kernel/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/mem.c')
-rw-r--r--src/kernel/mem.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/kernel/mem.c b/src/kernel/mem.c
index 5684bb7..19a10a9 100644
--- a/src/kernel/mem.c
+++ b/src/kernel/mem.c
@@ -25,3 +25,13 @@ void *page_alloc(size_t pages) {
void page_free(void *first, size_t pages) {
// not implemented
}
+
+
+void *kmalloc(size_t len) {
+ // extremely inefficient, but this is only temporary anyways
+ return page_alloc(len / PAGE_SIZE + 1);
+}
+
+void kfree(void *ptr) {
+ // unimplemented
+}