Function report |
Source Code:arch\x86\kernel\apic\apic.c |
Create Date:2022-07-28 08:27:11 |
Last Modify:2020-03-16 21:21:31 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:setup_local_APIC - setup the local APIC* Used to setup local APIC while initializing BSP or bringing up APs.* Always called with preemption disabled.
Proto:static void setup_local_APIC(void)
Type:void
Parameter:Nothing
1600 | cpu = smp_processor_id() |
1603 | If disable_apic Then |
1604 | disable_ioapic_support() |
1605 | Return |
1613 | value &= ~APIC_SPIV_APIC_ENABLED |
1614 | apic_write(APIC_SPIV, value) |
1618 | If Check, if the APIC is integrated or a separate chip && disable_esr Then |
1619 | apic_write(APIC_ESR, 0) |
1620 | apic_write(APIC_ESR, 0) |
1621 | apic_write(APIC_ESR, 0) |
1622 | apic_write(APIC_ESR, 0) |
1629 | BUG_ON(!apic_id_registered()) |
1636 | init_apic_ldr() |
1639 | If dest_logical is used by the IPI functions Then |
1648 | ldr_apicid = GET_APIC_LOGICAL_ID(apic_read(APIC_LDR)) |
1649 | If logical_apicid != BAD_APICID Then WARN_ON(logical_apicid != ldr_apicid) |
1662 | value = apic_read(APIC_TASKPRI) |
1663 | value &= ~APIC_TPRI_MASK |
1664 | value |= 0x10 |
1665 | apic_write(APIC_TASKPRI, value) |
1674 | value &= ~APIC_VECTOR_MASK |
1678 | value |= APIC_SPIV_APIC_ENABLED |
1705 | value &= ~APIC_SPIV_FOCUS_DISABLED |
1712 | apic_write(APIC_SPIV, value) |
1714 | perf_events_lapic_init() |
1726 | value = apic_read(APIC_LVT0) & APIC_LVT_MASKED |
1727 | If Not cpu && ( pic_mode || Not value || skip_ioapic_setup) Then |
1728 | value = APIC_DM_EXTINT |
1730 | Else |
1731 | value = APIC_DM_EXTINT | APIC_LVT_MASKED |
1734 | apic_write(APIC_LVT0, value) |
1743 | Else value = APIC_DM_NMI | APIC_LVT_MASKED |
1747 | If Not Check, if the APIC is integrated or a separate chip Then value |= APIC_LVT_LEVEL_TRIGGER |
1749 | apic_write(APIC_LVT1, value) |
Name | Describe |
---|---|
apic_ap_setup | APIC setup function for application processors. Called from smpboot.c |
apic_bsp_setup |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |