Anonymous user
Identity Paging: Difference between revisions
→Example
[unchecked revision] | [unchecked revision] |
(Removed PFR tag.) |
|||
Line 11:
void idpaging(dword *first_pte, vaddr from, int size){
from = from & 0xfffff000; // discard bits we don't want
for(;size>0;from+=4096,size-=4096,first_pte++){
*first_pte=from|1; // mark page present.
}
|