Fixes stupid bug....

This commit is contained in:
Felix Queißner 2016-05-07 18:51:34 +02:00
parent 012cc69edb
commit 98900c9069

View file

@ -36,7 +36,7 @@ void run_program0(Module const & module)
for(uint32_t ptr = 0; ptr < module.size(); ptr += 0x1000) for(uint32_t ptr = 0; ptr < module.size(); ptr += 0x1000)
{ {
kernelContext->provide( kernelContext->provide(
virtual_t(ptr), virtual_t(0x40000000 + ptr),
VMMFlags::Writable | VMMFlags::UserSpace); VMMFlags::Writable | VMMFlags::UserSpace);
} }
char * src = module.start.data<char>(); char * src = module.start.data<char>();
@ -130,6 +130,10 @@ extern "C" void init(Structure const & data)
physical_t(addr), physical_t(addr),
VMMFlags::Writable | VMMFlags::UserSpace); VMMFlags::Writable | VMMFlags::UserSpace);
} }
kernelContext->map(
virtual_t(kernelContext),
physical_t(kernelContext),
VMMFlags::Writable);
Console::main << "Active Context...\n"; Console::main << "Active Context...\n";
VMM::activate(*kernelContext); VMM::activate(*kernelContext);