Fixes stupid bug....
This commit is contained in:
parent
012cc69edb
commit
98900c9069
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue