Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/boot/multiboot2.S

    r811770c r3b0f1b9a  
    209209       
    210210        movl %cr4, %eax
    211         orl $CR4_PAE, %eax
     211        btsl $5, %eax
    212212        movl %eax, %cr4
    213213       
     
    217217       
    218218        /* Enable long mode */
    219         movl $AMD_MSR_EFER, %ecx
     219        movl $EFER_MSR_NUM, %ecx
    220220        rdmsr                     /* read EFER */
    221         orl $AMD_LME, %eax        /* set LME = 1 */
     221        btsl $AMD_LME_FLAG, %eax  /* set LME = 1 */
    222222        wrmsr
    223223       
    224224        /* Enable paging to activate long mode (set CR0.PG = 1) */
    225225        movl %cr0, %eax
    226         orl $CR0_PG, %eax
     226        btsl $31, %eax
    227227        movl %eax, %cr0
    228228       
Note: See TracChangeset for help on using the changeset viewer.