Changes in kernel/arch/amd64/src/asm.S [811770c:1a5eca4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/asm.S
r811770c r1a5eca4 33 33 #include <arch/kseg_struct.h> 34 34 #include <arch/cpu.h> 35 #include <arch/smp/apic.h>36 35 37 36 .text … … 94 93 95 94 /* Flip the ID bit */ 96 xorl $RFLAGS_ID, %edx95 btcl $21, %edx 97 96 98 97 /* Store RFLAGS */ … … 103 102 /* Get the ID bit again */ 104 103 popq %rdx 105 andl $ RFLAGS_ID, %eax106 andl $ RFLAGS_ID, %edx104 andl $(1 << 21), %eax 105 andl $(1 << 21), %edx 107 106 108 107 /* 0 if not supported, 1 if supported */ … … 128 127 FUNCTION_END(cpuid) 129 128 130 /** Enable local APIC 131 * 132 * Enable local APIC in MSR. 133 * 134 */ 135 FUNCTION_BEGIN(enable_l_apic_in_msr) 136 movl $AMD_MSR_APIC_BASE, %ecx 129 FUNCTION_BEGIN(set_efer_flag) 130 movl $0xc0000080, %ecx 137 131 rdmsr 138 orl $(L_APIC_BASE | AMD_APIC_BASE_GE), %eax132 btsl %edi, %eax 139 133 wrmsr 140 134 ret 141 FUNCTION_END(enable_l_apic_in_msr) 135 FUNCTION_END(set_efer_flag) 136 137 FUNCTION_BEGIN(read_efer_flag) 138 movl $0xc0000080, %ecx 139 rdmsr 140 ret 141 FUNCTION_END(read_efer_flag) 142 142 143 143 /* … … 541 541 ret 542 542 FUNCTION_END(early_putchar) 543
Note:
See TracChangeset
for help on using the changeset viewer.