Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/asm.S

    r0f17bff rd6f9fff  
    3636#include <arch/mm/page.h>
    3737#include <arch/istate_struct.h>
    38 #include <arch/smp/apic.h>
    3938
    4039.text
     
    111110FUNCTION_BEGIN(paging_on)
    112111        movl %cr0, %edx
    113         orl $CR0_PG, %edx  /* paging on */
     112        orl $(1 << 31), %edx  /* paging on */
    114113       
    115114        /* Clear Cache Disable and not Write Though */
    116         andl $~(CR0_CD | CR0_NW), %edx
     115        andl $~((1 << 30) | (1 << 29)), %edx
    117116        movl %edx, %cr0
    118117        jmp 0f
     
    128127 */
    129128FUNCTION_BEGIN(enable_l_apic_in_msr)
    130         movl $IA32_MSR_APIC_BASE, %ecx
     129        movl $0x1b, %ecx
    131130        rdmsr
    132         orl $(L_APIC_BASE | IA32_APIC_BASE_GE), %eax
     131        orl $(1 << 11), %eax
     132        orl $(0xfee00000), %eax
    133133        wrmsr
    134134        ret
Note: See TracChangeset for help on using the changeset viewer.