blob: e977f6a70618c4a63e6434f96c89d742b64fa772 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <kernel/mem.h>
#include <kernel/paging.h>
extern uintptr_t _kernel_end;
static uintptr_t heap_start = (uintptr_t)&_kernel_end;
static uintptr_t heap_end = (uintptr_t)&_kernel_end;
void* kmalloc(size_t sz) {
void *tmp = heap_end;
heap_end += sz;
return tmp;
}
void kfree(void *ptr) {
}
|