From 98900c906915b92dee528c8a3cdbebd1d8314c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Quei=C3=9Fner?= Date: Sat, 7 May 2016 18:51:34 +0200 Subject: [PATCH] Fixes stupid bug.... --- prototypes/base/init.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/prototypes/base/init.cpp b/prototypes/base/init.cpp index 699e81c..bdfefde 100644 --- a/prototypes/base/init.cpp +++ b/prototypes/base/init.cpp @@ -36,7 +36,7 @@ void run_program0(Module const & module) for(uint32_t ptr = 0; ptr < module.size(); ptr += 0x1000) { kernelContext->provide( - virtual_t(ptr), + virtual_t(0x40000000 + ptr), VMMFlags::Writable | VMMFlags::UserSpace); } char * src = module.start.data(); @@ -130,6 +130,10 @@ extern "C" void init(Structure const & data) physical_t(addr), VMMFlags::Writable | VMMFlags::UserSpace); } + kernelContext->map( + virtual_t(kernelContext), + physical_t(kernelContext), + VMMFlags::Writable); Console::main << "Active Context...\n"; VMM::activate(*kernelContext);