Enable paging - some more code reshuffling

This commit is contained in:
Tomas Hruby
2010-09-15 14:09:41 +00:00
parent 6c3b981cd6
commit ce4fd0c0fb
3 changed files with 26 additions and 28 deletions

View File

@@ -123,10 +123,10 @@ PUBLIC int do_vmctl(struct proc * caller, message * m_ptr)
case VMCTL_ENABLE_PAGING:
if(vm_running)
panic("do_vmctl: paging already enabled");
vm_init(p);
if(!vm_running)
if (arch_enable_paging(caller, m_ptr) != OK)
panic("do_vmctl: paging enabling failed");
return arch_enable_paging(caller, m_ptr);
return OK;
case VMCTL_KERN_PHYSMAP:
{
int i = m_ptr->SVMCTL_VALUE;