Paging: Difference between revisions
Mention WP bit
[unchecked revision] | [unchecked revision] |
Glauxosdever (talk | contribs) (mov eax, [var] in NASM gets the value at address var, and not the address of var) |
Glauxosdever (talk | contribs) (Mention WP bit) |
||
Line 97:
mov cr0, eax
</source>
If you want to set pages as read-only for both userspace and supervisor, replace 0x80000000 above with 0x80010000, which also sets the WP bit.
To enable PSE (4 MiB pages) the following code is required.
|