diff options
author | dzwdz | 2021-07-31 14:36:56 +0200 |
---|---|---|
committer | dzwdz | 2021-07-31 14:36:56 +0200 |
commit | 95e33f7f9362aadd9c6169b41437ca478aa3be14 (patch) | |
tree | 29a740559f707455a5b570f0c1f05360e1c6500f /src/kernel/mem.c | |
parent | 9fa85569ba6785576af675d6cb74323bbc937050 (diff) |
kmalloc() and kfree() stubs
Diffstat (limited to 'src/kernel/mem.c')
-rw-r--r-- | src/kernel/mem.c | 10 |
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 +} |