Rename current_regs in STM32L4 for consistency with other platforms

This commit is contained in:
Gregory Nutt 2016-03-10 10:08:40 -06:00
parent f4f03e6f02
commit 8e66043d7a
2 changed files with 6 additions and 5 deletions

View File

@ -94,4 +94,3 @@
#include "stm32l4_lowputc.h"
#endif /* __ARCH_ARM_SRC_STM32_STM32_H */

View File

@ -76,11 +76,13 @@
* 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 *current_regs;
volatile uint32_t *g_current_regs[1];
/* This is the address of the exception vector table (determined by the
* linker script).
@ -370,7 +372,7 @@ void up_irqinitialize(void)
/* currents_regs is non-NULL only while processing an interrupt */
current_regs = NULL;
CURRENT_REGS = NULL;
/* Attach the SVCall and Hard Fault exception handlers. The SVCall
* exception is used for performing context switches; The Hard Fault