Paging: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
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.