summaryrefslogtreecommitdiff
path: root/kernel/kernel.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-11-22 02:27:58 +0100
committerMichal Idziorek <m.i@gmx.at>2014-11-22 02:27:58 +0100
commit4ef54112ec3d3772cb97984a26c85299b8065316 (patch)
treeb9b1a8593ef1c041e2783b63966b54b96c294561 /kernel/kernel.c
parent904f68134bb3f6b50629ddcb6007b3a735ce4b72 (diff)
working on ELF support
Diffstat (limited to 'kernel/kernel.c')
-rw-r--r--kernel/kernel.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/kernel.c b/kernel/kernel.c
index 128f5dd..156ce21 100644
--- a/kernel/kernel.c
+++ b/kernel/kernel.c
@@ -62,6 +62,11 @@ void kernel_main(uint32_t initial_stack, int mp)
mem_init(0x7c00+1,*((uint16_t *)(0x7c00)));
//
+ // Activate Virtual Memory (paging)
+ //
+ vmem_init();
+
+ //
// init output to screen
//
console_init();
@@ -115,10 +120,6 @@ void kernel_main(uint32_t initial_stack, int mp)
//smp_start_aps(&procdata,0x80000); // starts at 0x80000
// but it will be copied over mbr
- //
- // Activate Virtual Memory (paging)
- //
- // vmem_init();
//