mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
arch/xtensa/esp32: Use the same g_intenable shadows in cpuint.c and
irq.c Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
committed by
Gustavo Henrique Nihei
parent
633cdf8e27
commit
97dca8fe10
@@ -154,6 +154,16 @@ uint8_t g_cpu0_intmap[ESP32_NCPUINTS];
|
|||||||
uint8_t g_cpu1_intmap[ESP32_NCPUINTS];
|
uint8_t g_cpu1_intmap[ESP32_NCPUINTS];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* g_intenable[] is a shadow copy of the per-CPU INTENABLE register
|
||||||
|
* content.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
uint32_t g_intenable[CONFIG_SMP_NCPUS];
|
||||||
|
#else
|
||||||
|
uint32_t g_intenable[1];
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -46,6 +46,16 @@ extern uint8_t g_cpu0_intmap[ESP32_NCPUINTS];
|
|||||||
extern uint8_t g_cpu1_intmap[ESP32_NCPUINTS];
|
extern uint8_t g_cpu1_intmap[ESP32_NCPUINTS];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* g_intenable[] is a shadow copy of the per-CPU INTENABLE register
|
||||||
|
* content.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
extern uint32_t g_intenable[CONFIG_SMP_NCPUS];
|
||||||
|
#else
|
||||||
|
extern uint32_t g_intenable[1];
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -59,16 +59,6 @@
|
|||||||
* Public Data
|
* Public Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* g_intenable[] is a shadow copy of the per-CPU INTENABLE register
|
|
||||||
* content.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
|
||||||
static uint32_t g_intenable[CONFIG_SMP_NCPUS];
|
|
||||||
#else
|
|
||||||
static uint32_t g_intenable[1];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* g_current_regs[] holds a reference to the current interrupt level
|
/* g_current_regs[] holds a reference to the current interrupt level
|
||||||
* register storage structure. It is non-NULL only during interrupt
|
* register storage structure. It is non-NULL only during interrupt
|
||||||
* processing. Access to g_current_regs[] must be through the macro
|
* processing. Access to g_current_regs[] must be through the macro
|
||||||
|
|||||||
Reference in New Issue
Block a user