BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 4f822f67ee63ef4245ad6bfcd0e3fe04ff6f34a0 / kernel

// Related

Nucleus

Barry Stack-based page frame allocator 4f822f6 (3 years, 3 months ago)
diff --git a/kernel/main.c b/kernel/main.c
index c2eb55d..5a10a59 100644
--- a/kernel/main.c
+++ b/kernel/main.c
@@ -7,6 +7,7 @@
 #include <stdint.h>
 #include <string.h>
 #include "multiboot.h"
+#include "../memory/memory.h"
 
 extern char _bss[], _end[];
 
@@ -17,5 +18,8 @@ kmain(uint32_t esp, struct MultibootInfo *mbinfo)
 	void *ebda = (void *) (*((uint16_t *) 0x040E) << 4);
 	memset(_bss, 0, _end - _bss);
 
+	/* Setup frame allocator */
+	init_frames(mbinfo->mmapLen, (void *) mbinfo->mmapAddr);
+
 	while (1);
 }