diff options
Diffstat (limited to 'arch/x86/kernel/apic/apic.c')
-rw-r--r-- | arch/x86/kernel/apic/apic.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index c48a6451084..c02bf135de9 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
@@ -1702,6 +1702,18 @@ void __init init_apic_mappings(void) | |||
1702 | } | 1702 | } |
1703 | } | 1703 | } |
1704 | 1704 | ||
1705 | void __init register_lapic_address(unsigned long address) | ||
1706 | { | ||
1707 | mp_lapic_addr = address; | ||
1708 | |||
1709 | set_fixmap_nocache(FIX_APIC_BASE, address); | ||
1710 | if (boot_cpu_physical_apicid == -1U) { | ||
1711 | boot_cpu_physical_apicid = read_apic_id(); | ||
1712 | apic_version[boot_cpu_physical_apicid] = | ||
1713 | GET_APIC_VERSION(apic_read(APIC_LVR)); | ||
1714 | } | ||
1715 | } | ||
1716 | |||
1705 | /* | 1717 | /* |
1706 | * This initializes the IO-APIC and APIC hardware if this is | 1718 | * This initializes the IO-APIC and APIC hardware if this is |
1707 | * a UP kernel. | 1719 | * a UP kernel. |