Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 114 → Rev 115

/SPARTAN/trunk/arch/ia32/src/mm/page.c
69,7 → 69,7
}
 
trap_register(14, page_fault);
cpu_write_dba(KA2PA(dba));
write_cr3(KA2PA(dba));
}
else {
/*
81,7 → 81,7
 
dba = frame_alloc(FRAME_KA | FRAME_PANIC);
memcopy(bootstrap_dba, dba, PAGE_SIZE);
cpu_write_dba(KA2PA(dba));
write_cr3(KA2PA(dba));
}
 
paging_on();
107,7 → 107,7
int pde, pte;
 
if (root) dba = root;
else dba = cpu_read_dba();
else dba = read_cr3();
 
pde = page >> 22; /* page directory entry */
pte = (page >> 12) & 0x3ff; /* page table entry */