summaryrefslogtreecommitdiff
path: root/Kernel/kmalloc.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-16 11:01:38 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-16 11:02:00 +0200
commit9396108034acd4bdd91532e13528f0b94af16653 (patch)
tree26d7870743b3276555db4f2408a4ce9c3f8ced9a /Kernel/kmalloc.h
parentf6086297047b639ede6fc0e058e4efcfc09ea46f (diff)
downloadserenity-9396108034acd4bdd91532e13528f0b94af16653.zip
Import the "gerbert" kernel I worked on earlier this year.
It's a lot crappier than I remembered it. It's gonna need a lot of work.
Diffstat (limited to 'Kernel/kmalloc.h')
-rw-r--r--Kernel/kmalloc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Kernel/kmalloc.h b/Kernel/kmalloc.h
new file mode 100644
index 0000000000..b5f31046bc
--- /dev/null
+++ b/Kernel/kmalloc.h
@@ -0,0 +1,11 @@
+#pragma once
+
+void kmalloc_init();
+void *kmalloc(DWORD size) __attribute__ ((malloc));
+void kfree(void*);
+
+extern DWORD sum_alloc;
+extern DWORD sum_free;
+
+inline void* operator new(size_t, void* p) { return p; }
+inline void* operator new[](size_t, void* p) { return p; }