diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-01 14:55:18 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-01 14:55:18 +0200 |
commit | e8cf65c07d78e3cfbac953b1b97c51998a5900df (patch) | |
tree | 7b75741a1d38b5da1ee79e877709b6b4723c4713 /src/kernel/mem/mem.h | |
parent | 5cac9acd3aedc8043d4272d93c56805c46ff6214 (diff) | |
download | TCE-e8cf65c07d78e3cfbac953b1b97c51998a5900df.tar.gz TCE-e8cf65c07d78e3cfbac953b1b97c51998a5900df.zip |
Now using Doug Lea's malloc in kernel land. Next: same in userland.
Diffstat (limited to 'src/kernel/mem/mem.h')
-rw-r--r-- | src/kernel/mem/mem.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/kernel/mem/mem.h b/src/kernel/mem/mem.h index 093545e..b6e9622 100644 --- a/src/kernel/mem/mem.h +++ b/src/kernel/mem/mem.h @@ -8,11 +8,17 @@ void* kmalloc_page(size_t *phys); void kfree_page(void* page); -void* kmalloc(size_t size); -void kfree(void* ptr); + +// Internal, used by dlmalloc +void* ksbrk(size_t size); +void kbrk(void* ptr); + +#define kmalloc dlmalloc +#define kfree dlfree void kheap_init(); +extern int _no_more_ksbrk; extern size_t mem_placementAddr; extern void end; //Symbol defined by linker : end of kernel code |