diff --git a/arch/arm/src/a1x/a1x_irq.c b/arch/arm/src/a1x/a1x_irq.c index adb4ebc16e4..65e18ffd73b 100644 --- a/arch/arm/src/a1x/a1x_irq.c +++ b/arch/arm/src/a1x/a1x_irq.c @@ -57,6 +57,12 @@ * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /**************************************************************************** diff --git a/arch/arm/src/c5471/c5471_irq.c b/arch/arm/src/c5471/c5471_irq.c index 054352674ae..8156ae5269e 100644 --- a/arch/arm/src/c5471/c5471_irq.c +++ b/arch/arm/src/c5471/c5471_irq.c @@ -58,6 +58,12 @@ * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /**************************************************************************** diff --git a/arch/arm/src/calypso/calypso_irq.c b/arch/arm/src/calypso/calypso_irq.c index 9e9ec94e3af..85f4f084589 100644 --- a/arch/arm/src/calypso/calypso_irq.c +++ b/arch/arm/src/calypso/calypso_irq.c @@ -53,6 +53,7 @@ #include #include "arm.h" +#include "up_internal.h" #include "up_arch.h" /**************************************************************************** @@ -84,6 +85,12 @@ enum irq_reg * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; extern uint32_t _exceptions; diff --git a/arch/arm/src/dm320/dm320_irq.c b/arch/arm/src/dm320/dm320_irq.c index fbaed79d5a4..e7bfff04bbc 100644 --- a/arch/arm/src/dm320/dm320_irq.c +++ b/arch/arm/src/dm320/dm320_irq.c @@ -56,6 +56,12 @@ * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /**************************************************************************** diff --git a/arch/arm/src/efm32/efm32_irq.c b/arch/arm/src/efm32/efm32_irq.c index 7d41c5da766..821d5cdc76d 100644 --- a/arch/arm/src/efm32/efm32_irq.c +++ b/arch/arm/src/efm32/efm32_irq.c @@ -79,8 +79,10 @@ * Public Data ****************************************************************************/ -/* This is the address of current interrupt saved state data. Used for - * context switching. Only value during interrupt handling. +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. */ volatile uint32_t *g_current_regs[1]; diff --git a/arch/arm/src/imx1/imx_irq.c b/arch/arm/src/imx1/imx_irq.c index 45a0de11c1c..038a60ad647 100644 --- a/arch/arm/src/imx1/imx_irq.c +++ b/arch/arm/src/imx1/imx_irq.c @@ -55,6 +55,12 @@ * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /**************************************************************************** diff --git a/arch/arm/src/imx6/imx_irq.c b/arch/arm/src/imx6/imx_irq.c index eb1cbc6848c..cd2a3ed283d 100644 --- a/arch/arm/src/imx6/imx_irq.c +++ b/arch/arm/src/imx6/imx_irq.c @@ -50,6 +50,7 @@ /**************************************************************************** * Public Data ****************************************************************************/ + /* g_current_regs[] holds a references to the current interrupt level * register storage structure. If is non-NULL only during interrupt * processing. Access to g_current_regs[] must be through the macro diff --git a/arch/arm/src/kinetis/kinetis_irq.c b/arch/arm/src/kinetis/kinetis_irq.c index e330a910e3a..456dc140a2e 100644 --- a/arch/arm/src/kinetis/kinetis_irq.c +++ b/arch/arm/src/kinetis/kinetis_irq.c @@ -75,8 +75,10 @@ * Public Data ****************************************************************************/ -/* This is the address of current interrupt saved state data. Used for - * context switching. Only value during interrupt handling. +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. */ volatile uint32_t *g_current_regs[1]; diff --git a/arch/arm/src/kl/kl_irq.c b/arch/arm/src/kl/kl_irq.c index faecc52edb6..87d47ab35c0 100644 --- a/arch/arm/src/kl/kl_irq.c +++ b/arch/arm/src/kl/kl_irq.c @@ -66,6 +66,12 @@ * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /**************************************************************************** diff --git a/arch/arm/src/lpc11xx/lpc11_irq.c b/arch/arm/src/lpc11xx/lpc11_irq.c index eaf2e8bda44..c6daaba380d 100644 --- a/arch/arm/src/lpc11xx/lpc11_irq.c +++ b/arch/arm/src/lpc11xx/lpc11_irq.c @@ -66,6 +66,12 @@ * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /**************************************************************************** diff --git a/arch/arm/src/lpc17xx/lpc17_irq.c b/arch/arm/src/lpc17xx/lpc17_irq.c index 7449ab020c7..d1f72be399a 100644 --- a/arch/arm/src/lpc17xx/lpc17_irq.c +++ b/arch/arm/src/lpc17xx/lpc17_irq.c @@ -76,8 +76,10 @@ * Public Data ****************************************************************************/ -/* This is the address of current interrupt saved state data. Used for - * context switching. Only value during interrupt handling. +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. */ volatile uint32_t *g_current_regs[1]; diff --git a/arch/arm/src/lpc214x/lpc214x_irq.c b/arch/arm/src/lpc214x/lpc214x_irq.c index cd7945cbbd9..a28854c1764 100644 --- a/arch/arm/src/lpc214x/lpc214x_irq.c +++ b/arch/arm/src/lpc214x/lpc214x_irq.c @@ -58,6 +58,12 @@ * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /**************************************************************************** diff --git a/arch/arm/src/lpc2378/lpc23xx_irq.c b/arch/arm/src/lpc2378/lpc23xx_irq.c index d9763ad85fd..ba82aaf3b87 100644 --- a/arch/arm/src/lpc2378/lpc23xx_irq.c +++ b/arch/arm/src/lpc2378/lpc23xx_irq.c @@ -51,6 +51,7 @@ #include "arm.h" #include "chip.h" +#include "up_internal.h" #include "up_arch.h" #include "lpc2378.h" @@ -64,6 +65,12 @@ * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /**************************************************************************** diff --git a/arch/arm/src/lpc31xx/lpc31_irq.c b/arch/arm/src/lpc31xx/lpc31_irq.c index 1a1b2379a68..6e390e124e6 100644 --- a/arch/arm/src/lpc31xx/lpc31_irq.c +++ b/arch/arm/src/lpc31xx/lpc31_irq.c @@ -63,6 +63,12 @@ * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /**************************************************************************** diff --git a/arch/arm/src/lpc43xx/lpc43_irq.c b/arch/arm/src/lpc43xx/lpc43_irq.c index e0719793f3d..73ca6d3bc7c 100644 --- a/arch/arm/src/lpc43xx/lpc43_irq.c +++ b/arch/arm/src/lpc43xx/lpc43_irq.c @@ -77,8 +77,10 @@ * Public Data ****************************************************************************/ -/* This is the address of current interrupt saved state data. Used for - * context switching. Only value during interrupt handling. +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. */ volatile uint32_t *g_current_regs[1]; diff --git a/arch/arm/src/moxart/moxart_irq.c b/arch/arm/src/moxart/moxart_irq.c index a8aa826b3d8..8d2b07cc220 100644 --- a/arch/arm/src/moxart/moxart_irq.c +++ b/arch/arm/src/moxart/moxart_irq.c @@ -49,6 +49,7 @@ #include "arm.h" #include "up_arch.h" +#include "up_internal.h" /**************************************************************************** * Pre-processor Definitions @@ -68,6 +69,12 @@ * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /**************************************************************************** diff --git a/arch/arm/src/nuc1xx/nuc_irq.c b/arch/arm/src/nuc1xx/nuc_irq.c index a90057adcfd..0bdb86a8ee9 100644 --- a/arch/arm/src/nuc1xx/nuc_irq.c +++ b/arch/arm/src/nuc1xx/nuc_irq.c @@ -66,6 +66,12 @@ * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /**************************************************************************** diff --git a/arch/arm/src/sam34/sam_irq.c b/arch/arm/src/sam34/sam_irq.c index 69236c77dcb..2a8b2f990ed 100644 --- a/arch/arm/src/sam34/sam_irq.c +++ b/arch/arm/src/sam34/sam_irq.c @@ -78,8 +78,10 @@ * Public Data ****************************************************************************/ -/* This is the address of current interrupt saved state data. Used for - * context switching. Only value during interrupt handling. +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. */ volatile uint32_t *g_current_regs[1]; diff --git a/arch/arm/src/sama5/sam_irq.c b/arch/arm/src/sama5/sam_irq.c index fdb48ea9355..21ce68ff236 100644 --- a/arch/arm/src/sama5/sam_irq.c +++ b/arch/arm/src/sama5/sam_irq.c @@ -78,6 +78,12 @@ typedef uint32_t *(*doirq_t)(int irq, uint32_t *regs); * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /* Symbols defined via the linker script */ diff --git a/arch/arm/src/samdl/sam_irq.c b/arch/arm/src/samdl/sam_irq.c index b7aafeed2b8..3f12b9943ac 100644 --- a/arch/arm/src/samdl/sam_irq.c +++ b/arch/arm/src/samdl/sam_irq.c @@ -66,6 +66,12 @@ * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ + volatile uint32_t *g_current_regs[1]; /**************************************************************************** diff --git a/arch/arm/src/samv7/sam_irq.c b/arch/arm/src/samv7/sam_irq.c index 4c43927b21f..963b87db1da 100644 --- a/arch/arm/src/samv7/sam_irq.c +++ b/arch/arm/src/samv7/sam_irq.c @@ -78,8 +78,10 @@ * Public Data ****************************************************************************/ -/* This is the address of current interrupt saved state data. Used for - * context switching. Only value during interrupt handling. +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. */ volatile uint32_t *g_current_regs[1]; diff --git a/arch/arm/src/stm32/stm32_irq.c b/arch/arm/src/stm32/stm32_irq.c index dfcbbc62e49..87d6bf7c2aa 100644 --- a/arch/arm/src/stm32/stm32_irq.c +++ b/arch/arm/src/stm32/stm32_irq.c @@ -75,8 +75,10 @@ * Public Data ****************************************************************************/ -/* This is the address of current interrupt saved state data. Used for - * context switching. Only value during interrupt handling. +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. */ volatile uint32_t *g_current_regs[1]; diff --git a/arch/arm/src/stm32f7/stm32_irq.c b/arch/arm/src/stm32f7/stm32_irq.c index b6bf3a5603f..a52e3e56d93 100644 --- a/arch/arm/src/stm32f7/stm32_irq.c +++ b/arch/arm/src/stm32f7/stm32_irq.c @@ -80,8 +80,10 @@ * Public Data ****************************************************************************/ -/* This is the address of current interrupt saved state data. Used for - * context switching. Only value during interrupt handling. +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. */ volatile uint32_t *g_current_regs[1]; diff --git a/arch/arm/src/str71x/str71x_irq.c b/arch/arm/src/str71x/str71x_irq.c index 60dfe3f2274..314ea525950 100644 --- a/arch/arm/src/str71x/str71x_irq.c +++ b/arch/arm/src/str71x/str71x_irq.c @@ -55,6 +55,11 @@ /**************************************************************************** * Public Data ****************************************************************************/ +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. + */ volatile uint32_t *g_current_regs[1]; diff --git a/arch/arm/src/tiva/tiva_irq.c b/arch/arm/src/tiva/tiva_irq.c index c0e4133059d..67f8f180602 100644 --- a/arch/arm/src/tiva/tiva_irq.c +++ b/arch/arm/src/tiva/tiva_irq.c @@ -77,8 +77,10 @@ * Public Data ****************************************************************************/ -/* This is the address of current interrupt saved state data. Used for - * context switching. Only value during interrupt handling. +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. */ volatile uint32_t *g_current_regs[1]; diff --git a/arch/arm/src/tms570/tms570_irq.c b/arch/arm/src/tms570/tms570_irq.c index 957407fd06c..da9f8c5656f 100644 --- a/arch/arm/src/tms570/tms570_irq.c +++ b/arch/arm/src/tms570/tms570_irq.c @@ -60,8 +60,10 @@ * Public Data ****************************************************************************/ -/* This is the address of current interrupt saved state data. Used for - * context switching. Only value during interrupt handling. +/* g_current_regs[] holds a references to the current interrupt level + * register storage structure. If is non-NULL only during interrupt + * processing. Access to g_current_regs[] must be through the macro + * CURRENT_REGS for portability. */ volatile uint32_t *g_current_regs[1];