mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
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:
committed by
Petro Karashchenko
parent
229b57d6cb
commit
3c1c29f2c4
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -71,6 +71,12 @@
|
||||
# define USE_SERIALDRIVER 1
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
volatile uint32_t *g_current_regs;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user