Changeset 811770c in mainline for kernel/arch/amd64/src/boot/multiboot2.S
- Timestamp:
- 2016-05-05T12:06:04Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 57c2a87
- Parents:
- 0f17bff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/boot/multiboot2.S
r0f17bff r811770c 209 209 210 210 movl %cr4, %eax 211 btsl $5, %eax211 orl $CR4_PAE, %eax 212 212 movl %eax, %cr4 213 213 … … 217 217 218 218 /* Enable long mode */ 219 movl $ EFER_MSR_NUM, %ecx219 movl $AMD_MSR_EFER, %ecx 220 220 rdmsr /* read EFER */ 221 btsl $AMD_LME_FLAG, %eax/* set LME = 1 */221 orl $AMD_LME, %eax /* set LME = 1 */ 222 222 wrmsr 223 223 224 224 /* Enable paging to activate long mode (set CR0.PG = 1) */ 225 225 movl %cr0, %eax 226 btsl $31, %eax226 orl $CR0_PG, %eax 227 227 movl %eax, %cr0 228 228
Note:
See TracChangeset
for help on using the changeset viewer.