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

Name:disconnect_bsp_APIC - detach the APIC from the interrupt system*@virt_wire_setup: indicates, whether virtual wire mode is selected* Virtual wire mode is necessary to deliver legacy interrupts even when the* APIC is disabled.

Proto:void disconnect_bsp_APIC(int virt_wire_setup)

Type:void

Parameter:

TypeParameterName
intvirt_wire_setup
2280  If pic_mode Then
2287  Define the default level of output to be very little* This can be turned up by using apic=verbose for more* information and apic=debug for _lots_ of information.* apic_verbosity is defined in apic.c(APIC_VERBOSE, "disabling APIC mode, entering PIC mode.\n")
2289  imcr_apic_to_pic()
2290  Return
2297  value = apic_read(APIC_SPIV)
2298  value &= ~APIC_VECTOR_MASK
2299  value |= APIC_SPIV_APIC_ENABLED
2300  value |= 0xf
2301  apic_write(APIC_SPIV, value)
2303  If Not virt_wire_setup Then
2308  value = apic_read(APIC_LVT0)
2309  value &= ~( APIC_MODE_MASK | APIC_SEND_PENDING | APIC_INPUT_POLARITY | APIC_LVT_REMOTE_IRR | APIC_LVT_LEVEL_TRIGGER | APIC_LVT_MASKED)
2312  value |= APIC_LVT_REMOTE_IRR | APIC_SEND_PENDING
2313  value = SET_APIC_DELIVERY_MODE(value, APIC_MODE_EXTINT)
2314  apic_write(APIC_LVT0, value)
2315  Else
2317  apic_write(APIC_LVT0, APIC_LVT_MASKED)
2324  value = apic_read(APIC_LVT1)
2325  value &= ~( APIC_MODE_MASK | APIC_SEND_PENDING | APIC_INPUT_POLARITY | APIC_LVT_REMOTE_IRR | APIC_LVT_LEVEL_TRIGGER | APIC_LVT_MASKED)
2328  value |= APIC_LVT_REMOTE_IRR | APIC_SEND_PENDING
2329  value = SET_APIC_DELIVERY_MODE(value, APIC_MODE_NMI)
2330  apic_write(APIC_LVT1, value)
Caller
NameDescribe
native_restore_boot_irq_mode