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:04
Last Modify:2020-03-16 21:21:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:An initial setup of the virtual wire mode.

Proto:void __init init_bsp_APIC(void)

Type:void

Parameter:Nothing

1413  If Have we found an MP table || Not boot_cpu_has(Onboard APIC ) Then Return
1419  lear_local_APIC - shutdown the local APIC* This is called, when a CPU is disabled and before rebooting, so the state of* the local APIC has no dangling leftovers. Also used to cleanout any BIOS* leftovers during boot.
1424  value = apic_read(APIC_SPIV)
1425  value &= ~APIC_VECTOR_MASK
1426  value |= APIC_SPIV_APIC_ENABLED
1430  If x86_vendor == X86_VENDOR_INTEL && x86 == 15 Then value &= ~APIC_SPIV_FOCUS_DISABLED
1433  Else value |= APIC_SPIV_FOCUS_DISABLED
1436  value |= Special IRQ vectors used by the SMP architecture, 0xf0-0xff* some of the following vectors are 'rare', they are merged* into a single vector (CALL_FUNCTION_VECTOR) to save vector space.* TLB, reschedule and local APIC vectors are performance-critical.
1437  apic_write(APIC_SPIV, value)
1442  apic_write(APIC_LVT0, APIC_DM_EXTINT)
1443  value = APIC_DM_NMI
1444  If Not Check, if the APIC is integrated or a separate chip Then value |= APIC_LVT_LEVEL_TRIGGER
1446  If This variable controls which CPUs receive external NMIs. By default,* external NMIs are delivered only to the BSP. == APIC_EXTNMI_NONE Then value |= APIC_LVT_MASKED
1448  apic_write(APIC_LVT1, value)
Caller
NameDescribe
init_ISA_irqs