arch: move non arm g_current_regs defintion to common place

to avoid the code duplicaiton

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-09-20 08:14:31 +08:00
committed by Petro Karashchenko
parent 229b57d6cb
commit 3c1c29f2c4
97 changed files with 125 additions and 1212 deletions
-18
View File
@@ -37,20 +37,6 @@
#include "up_internal.h"
#include "bm3803.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Public Data
****************************************************************************/
volatile uint32_t *g_current_regs;
/****************************************************************************
* Private Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
@@ -99,10 +85,6 @@ void up_irqinitialize(void)
irq_attach(BM3803_IRQ_SW_SYSCALL_TA0, up_swint0, NULL);
irq_attach(BM3803_IRQ_SW_SYSCALL_TA8, up_swint1, NULL);
/* currents_regs is non-NULL only while processing an interrupt */
g_current_regs = NULL;
/* And finally, enable interrupts */
/* Interrupts are enabled by setting the te bit in the psr status
-18
View File
@@ -36,20 +36,6 @@
#include "up_internal.h"
#include "bm3823.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Public Data
****************************************************************************/
volatile uint32_t *g_current_regs;
/****************************************************************************
* Private Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
@@ -104,10 +90,6 @@ void up_irqinitialize(void)
irq_attach(BM3823_IRQ_SW_SYSCALL_TA0, up_swint0, NULL);
irq_attach(BM3823_IRQ_SW_SYSCALL_TA8, up_swint1, NULL);
/* currents_regs is non-NULL only while processing an interrupt */
g_current_regs = NULL;
/* And finally, enable interrupts */
/* Interrupts are enabled by setting the te bit in the psr status
+6
View File
@@ -71,6 +71,12 @@
# define USE_SERIALDRIVER 1
#endif
/****************************************************************************
* Public Data
****************************************************************************/
volatile uint32_t *g_current_regs;
/****************************************************************************
* Private Functions
****************************************************************************/