Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\apic.c Create Date:2022-07-28 08:27:01
Last Modify:2020-03-16 21:21:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:disable_local_APIC - clear and disable the local APIC

Proto:void disable_local_APIC(void)

Type:void

Parameter:Nothing

1264  If Not x2apic_mode && Not apic_phys Then Return
1267  apic_soft_disable - Clears and software disables the local APIC on hotplug* Contrary to disable_local_APIC() this does not touch the enable bit in* MSR_IA32_APICBASE
1274  If Local APIC was disabled by the BIOS and enabled by the kernel Then
1277  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(MSR_IA32_APICBASE, l, h)
1278  l &= ~MSR_IA32_APICBASE_ENABLE
1279  wrmsr(MSR_IA32_APICBASE, l, h)
Caller
NameDescribe
native_stop_other_cpus
lapic_shutdownIf Linux enabled the LAPIC against the BIOS default disable it down before* re-entering the BIOS on shutdown. Otherwise the BIOS may get confused and* not power-off. Additionally clear all LVT entries before disable_local_APIC