How do interrupts work on multicore ARM cpu

后端 未结 1 1120
春和景丽
春和景丽 2021-02-01 11:01

This question has already been answered for x86 however, I couldn\'t find much about ARM MP cpus like Cortex-A9, Cortex-A15 etc...

More importantly i want to know if int

1条回答
  •  闹比i
    闹比i (楼主)
    2021-02-01 11:34

    The short and for practical purposes correct answer is that what you ask for is not possible without some configuration being performed on the secondary cores...

    The interrupt controller architecture is described (in quite some detail) in http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ihi0048b/index.html

    To prepare the secondary cores to receive IPIs, you need to:

    • Enable the GIC Distributor (once, for the whole system)
    • Enable the GIC CPU interface (for each core)
    • Enable the IPIs you want to receive (for each core)
    • Set the priorities for each IPI you want to receive (for each core)
    • Ensure the CPU interface Interrupt Priority Mask Register (for each core) is set to priority level lower (higher number) than the interrupt priority you set above.
    • Clear the CPSR I-bit (for each core)

    If you don't intend to implement an interrupt handler, skip the clearing of the I-bit. The core will come out of WFI and continue executing. That is normally what you want for a system boot operation.

    0 讨论(0)
提交回复
热议问题