Rename _InterruptStack to _interrupt_stack
Updating global variable's name to follow a consistent naming convention.
Change accomplished with the following script:
#!/bin/bash
echo "Searching for ${1} to replace with ${2}"
find ./ \( -name "*.[chs]" -o -name "sysgen.py" -o -name "*.kconf" \) \
! -path "./host/src/genIdt/*" \
! -path "*/outdir/*" | xargs sed -i 's/\b'${1}'\b/'${2}'/g';
Change-Id: I36709c9833279f05a186a5c00b996d242c843d4c
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
a17eac73c3
commit
e7c1f2c20b
6 changed files with 11 additions and 11 deletions
|
|
@ -51,7 +51,7 @@
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
|
|
||||||
extern void _firq_stack_setup(void);
|
extern void _firq_stack_setup(void);
|
||||||
extern char _InterruptStack[];
|
extern char _interrupt_stack[];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _irq_setup
|
* _irq_setup
|
||||||
|
|
@ -69,7 +69,7 @@ static ALWAYS_INLINE void _irq_setup(void)
|
||||||
nano_cpu_sleep_mode = _ARC_V2_WAKE_IRQ_LEVEL;
|
nano_cpu_sleep_mode = _ARC_V2_WAKE_IRQ_LEVEL;
|
||||||
_arc_v2_aux_reg_write(_ARC_V2_AUX_IRQ_CTRL, aux_irq_ctrl_value);
|
_arc_v2_aux_reg_write(_ARC_V2_AUX_IRQ_CTRL, aux_irq_ctrl_value);
|
||||||
|
|
||||||
_NanoKernel.rirq_sp = _InterruptStack + CONFIG_ISR_STACK_SIZE;
|
_NanoKernel.rirq_sp = _interrupt_stack + CONFIG_ISR_STACK_SIZE;
|
||||||
_firq_stack_setup();
|
_firq_stack_setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ SECTION_FUNC(TEXT,__reset)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set PSP and use it to boot without using MSP, so that it
|
* Set PSP and use it to boot without using MSP, so that it
|
||||||
* gets set to _InterruptStack during nanoInit().
|
* gets set to _interrupt_stack during nanoInit().
|
||||||
*/
|
*/
|
||||||
ldr r0, =__CORTEXM_BOOT_PSP
|
ldr r0, =__CORTEXM_BOOT_PSP
|
||||||
msr PSP, r0
|
msr PSP, r0
|
||||||
|
|
|
||||||
|
|
@ -60,12 +60,12 @@ Stack helper functions.
|
||||||
|
|
||||||
#if (STACK_DIR == STACK_GROWS_DOWN)
|
#if (STACK_DIR == STACK_GROWS_DOWN)
|
||||||
#define __GET_MSP() \
|
#define __GET_MSP() \
|
||||||
STACK_ROUND_DOWN(&_InterruptStack[CONFIG_ISR_STACK_SIZE - 1])
|
STACK_ROUND_DOWN(&_interrupt_stack[CONFIG_ISR_STACK_SIZE - 1])
|
||||||
#else
|
#else
|
||||||
#define __GET_MSP() STACK_ROUND_UP(&_InterruptStack[0])
|
#define __GET_MSP() STACK_ROUND_UP(&_interrupt_stack[0])
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern char _InterruptStack[CONFIG_ISR_STACK_SIZE];
|
extern char _interrupt_stack[CONFIG_ISR_STACK_SIZE];
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ some key symbols (eg. the gdt) provided by the linker script.
|
||||||
GTEXT(_Cstart)
|
GTEXT(_Cstart)
|
||||||
|
|
||||||
GDATA(_IdtBaseAddress)
|
GDATA(_IdtBaseAddress)
|
||||||
GDATA(_InterruptStack)
|
GDATA(_interrupt_stack)
|
||||||
|
|
||||||
|
|
||||||
#if defined(CONFIG_SSE)
|
#if defined(CONFIG_SSE)
|
||||||
|
|
@ -497,7 +497,7 @@ memInitDone:
|
||||||
* interrupts are disabled until the first context switch.
|
* interrupts are disabled until the first context switch.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
movl $_InterruptStack, %esp
|
movl $_interrupt_stack, %esp
|
||||||
addl $CONFIG_ISR_STACK_SIZE, %esp
|
addl $CONFIG_ISR_STACK_SIZE, %esp
|
||||||
|
|
||||||
/* align to stack boundary: ROUND_DOWN (%esp, 4) */
|
/* align to stack boundary: ROUND_DOWN (%esp, 4) */
|
||||||
|
|
|
||||||
|
|
@ -802,7 +802,7 @@ static inline void nanoArchInit(void)
|
||||||
extern void *__DummySpur;
|
extern void *__DummySpur;
|
||||||
extern void _ExcEnt(void);
|
extern void _ExcEnt(void);
|
||||||
extern void *__DummyExcEnt;
|
extern void *__DummyExcEnt;
|
||||||
extern char _InterruptStack[CONFIG_ISR_STACK_SIZE];
|
extern char _interrupt_stack[CONFIG_ISR_STACK_SIZE];
|
||||||
|
|
||||||
_NanoKernel.nested = 0;
|
_NanoKernel.nested = 0;
|
||||||
|
|
||||||
|
|
@ -810,7 +810,7 @@ static inline void nanoArchInit(void)
|
||||||
_NanoKernel.common_isp = (char *)NULL;
|
_NanoKernel.common_isp = (char *)NULL;
|
||||||
#else /* notdef CONFIG_NO_ISRS */
|
#else /* notdef CONFIG_NO_ISRS */
|
||||||
_NanoKernel.common_isp = (char *)STACK_ROUND_DOWN(
|
_NanoKernel.common_isp = (char *)STACK_ROUND_DOWN(
|
||||||
&_InterruptStack[CONFIG_ISR_STACK_SIZE - 1]);
|
&_interrupt_stack[CONFIG_ISR_STACK_SIZE - 1]);
|
||||||
#endif /* notdef CONFIG_NO_ISRS */
|
#endif /* notdef CONFIG_NO_ISRS */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ static char __noinit mainStack[CONFIG_MAIN_STACK_SIZE];
|
||||||
* this BSP doesn't need to setup the aforementioned temporary stack.
|
* this BSP doesn't need to setup the aforementioned temporary stack.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char __noinit _InterruptStack[CONFIG_ISR_STACK_SIZE];
|
char __noinit _interrupt_stack[CONFIG_ISR_STACK_SIZE];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue