Changes in kernel/arch/amd64/src/boot/multiboot.S [811770c:3b0f1b9a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/boot/multiboot.S
r811770c r3b0f1b9a 168 168 169 169 movl %cr4, %eax 170 orl $CR4_PAE, %eax170 btsl $5, %eax 171 171 movl %eax, %cr4 172 172 … … 176 176 177 177 /* Enable long mode */ 178 movl $ AMD_MSR_EFER, %ecx178 movl $EFER_MSR_NUM, %ecx 179 179 rdmsr /* read EFER */ 180 orl $AMD_LME, %eax/* set LME = 1 */180 btsl $AMD_LME_FLAG, %eax /* set LME = 1 */ 181 181 wrmsr 182 182 183 183 /* Enable paging to activate long mode (set CR0.PG = 1) */ 184 184 movl %cr0, %eax 185 orl $CR0_PG, %eax185 btsl $31, %eax 186 186 movl %eax, %cr0 187 187
Note:
See TracChangeset
for help on using the changeset viewer.