Identity Paging: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
Removed PFR tag. |
m Bot: Replace deprecated source tag with syntaxhighlight |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 8:
You can easily do this with a loop filling the page table:
<syntaxhighlight lang="c">
void idpaging(
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.
}
}
</syntaxhighlight>
==See Also==
===Articles===
* [[Memory Management]]
* [[Paging]]
[[Category:Memory management]]
|