📜  进入 64 位模式 - 汇编代码示例

📅  最后修改于: 2022-03-11 14:48:10.203000             🧑  作者: Mango

代码示例1
If paging is enabled, disable paging.
If CR4.PAE is not already set, set it.
Set IA32_EFER.LME = 1.
Load CR3 with a valid PML4 table.
Enable paging.
At this point you will be in compatibility mode. A far jump may be executed to switch to long mode. However, the offset must not exceed 32-bit.