summaryrefslogtreecommitdiff
path: root/kernel/palloc.c
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-01-29 20:46:14 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-01-29 20:46:14 +0100
commit1f6a99a1e7874650a62eaa106e12c00a19f7e7a1 (patch)
treeb53a939669632c193453885b3548ebd3063c9db0 /kernel/palloc.c
parent37db7181daf1cc10683de24f6203e595b2ac49bc (diff)
Rudimentary palloc().
Diffstat (limited to 'kernel/palloc.c')
-rw-r--r--kernel/palloc.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/palloc.c b/kernel/palloc.c
new file mode 100644
index 0000000..5ad6e56
--- /dev/null
+++ b/kernel/palloc.c
@@ -0,0 +1,15 @@
+#include "palloc.h"
+
+uint32_t palloc_last = 0x200000;
+
+void palloc_init() {
+ // TODO: Initialize bitmap from memory map.
+}
+
+uint32_t palloc() {
+ return palloc_last += 0x1000;
+}
+
+void pfree(uint32_t addr) {
+
+}