Paging: Difference between revisions

Jump to navigation Jump to search
m
[unchecked revision][unchecked revision]
(→‎Enabling: Added section for enabling 64-bit paging)
Line 101:
</source>
 
Note: setting the paging flag when the protection flag is clear causes a [[Exceptions#General_Protection_Fault|general protection exception]]. Also, once paging has been enabled, any attempt to enable long mode by setting LME (bit 8) of the [[EFERCPU_Registers_x86-64#IA32_EFER|EFER register]] will trigger a [[Exceptions#General_Protection_Fault|GPF]]. The CR0.PG must first be cleared before EFER.LME can be set.
 
If you want to set pages as read-only for both userspace and supervisor, replace 0x80000001 above with 0x80010001, which also sets the WP bit.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu