Paging: Difference between revisions

144 bytes added ,  8 years ago
Mention WP bit
[unchecked revision][unchecked revision]
(mov eax, [var] in NASM gets the value at address var, and not the address of var)
(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.
241

edits