Identity Paging: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content added Content deleted
(Syntax highlight) |
|||
Line 8: | Line 8: | ||
You can easily do this with a loop filling the page table: |
You can easily do this with a loop filling the page table: |
||
<source lang="c"> |
|||
void idpaging(dword *first_pte, vaddr from, int size){ |
void idpaging(dword *first_pte, vaddr from, int size){ |
||
from = from & 0xfffff000; // discard bits we don't want |
from = from & 0xfffff000; // discard bits we don't want |
||
Line 15: | Line 15: | ||
} |
} |
||
} |
} |
||
</source> |
|||
[[Category:Memory management]] |
[[Category:Memory management]] |