From d7aaba8c85cc71f3184cddcf20b740c5157c864d Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 7 Dec 2014 11:49:52 +0100 Subject: Refactor kmalloc & tests in kmain. --- kernel/include/kmalloc.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 kernel/include/kmalloc.h (limited to 'kernel/include/kmalloc.h') diff --git a/kernel/include/kmalloc.h b/kernel/include/kmalloc.h new file mode 100644 index 0000000..a409865 --- /dev/null +++ b/kernel/include/kmalloc.h @@ -0,0 +1,14 @@ +#pragma once + +#include +#include + +// Kernel memory allocator : one slab allocator for shared memory +// Thread-safe. + +void kmalloc_setup(); + +void* kmalloc(size_t sz); +void kfree(void* ptr); + +/* vim: set ts=4 sw=4 tw=0 noet :*/ -- cgit v1.2.3