Changeset 811770c in mainline for kernel/arch/amd64/src/asm.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/asm.S
r0f17bff r811770c 33 33 #include <arch/kseg_struct.h> 34 34 #include <arch/cpu.h> 35 #include <arch/smp/apic.h> 35 36 36 37 .text … … 93 94 94 95 /* Flip the ID bit */ 95 btcl $21, %edx96 xorl $RFLAGS_ID, %edx 96 97 97 98 /* Store RFLAGS */ … … 102 103 /* Get the ID bit again */ 103 104 popq %rdx 104 andl $ (1 << 21), %eax105 andl $ (1 << 21), %edx105 andl $RFLAGS_ID, %eax 106 andl $RFLAGS_ID, %edx 106 107 107 108 /* 0 if not supported, 1 if supported */ … … 127 128 FUNCTION_END(cpuid) 128 129 129 FUNCTION_BEGIN(set_efer_flag) 130 movl $0xc0000080, %ecx 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 131 137 rdmsr 132 btsl %edi, %eax138 orl $(L_APIC_BASE | AMD_APIC_BASE_GE), %eax 133 139 wrmsr 134 140 ret 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) 141 FUNCTION_END(enable_l_apic_in_msr) 142 142 143 143 /* … … 541 541 ret 542 542 FUNCTION_END(early_putchar) 543
Note:
See TracChangeset
for help on using the changeset viewer.