mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
arch/arm/: Rename up_intstack_* to arm_intstack_*
The naming standard at https://cwiki.apache.org/confluence/display/NUTTX/Naming+FAQ requires that all architecture-private functions begin with the name of the arch, not up_. This PR addresses only these name changes for the ARM-private functions up_instack_base() and up_instack_top() which should be called arm_instack_base() and arm_instack_top(). There should be no impact of this change (other that one step toward more consistent naming). Normal PR checks are sufficient
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
da4c597b5f
commit
1bab5b6813
@@ -247,7 +247,7 @@ static void up_dumpstate(void)
|
||||
/* Get the limits on the interrupt stack memory */
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
istackbase = (uint32_t)up_intstack_base();
|
||||
istackbase = (uint32_t)arm_intstack_base();
|
||||
#else
|
||||
istackbase = (uint32_t)&g_intstackbase;
|
||||
#endif
|
||||
@@ -303,7 +303,7 @@ static void up_dumpstate(void)
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
stackbase = (uint32_t *)up_intstack_base();
|
||||
stackbase = (uint32_t *)arm_intstack_base();
|
||||
#else
|
||||
stackbase = (uint32_t *)&g_intstackbase;
|
||||
#endif
|
||||
|
||||
@@ -250,7 +250,7 @@ static void up_dumpstate(void)
|
||||
/* Get the limits on the interrupt stack memory */
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
istackbase = (uint32_t)up_intstack_base();
|
||||
istackbase = (uint32_t)arm_intstack_base();
|
||||
#else
|
||||
istackbase = (uint32_t)&g_intstackbase;
|
||||
#endif
|
||||
|
||||
@@ -250,7 +250,7 @@ static void up_dumpstate(void)
|
||||
/* Get the limits on the interrupt stack memory */
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
istackbase = (uint32_t)up_intstack_base();
|
||||
istackbase = (uint32_t)arm_intstack_base();
|
||||
#else
|
||||
istackbase = (uint32_t)&g_intstackbase;
|
||||
#endif
|
||||
|
||||
@@ -213,7 +213,7 @@ ssize_t up_check_stack_remain(void)
|
||||
size_t up_check_intstack(void)
|
||||
{
|
||||
#ifdef CONFIG_SMP
|
||||
return do_stackcheck(up_intstack_base(),
|
||||
return do_stackcheck(arm_intstack_base(),
|
||||
(CONFIG_ARCH_INTERRUPTSTACK & ~3),
|
||||
true);
|
||||
#else
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
static inline void up_color_intstack(void)
|
||||
{
|
||||
#ifdef CONFIG_SMP
|
||||
uint32_t *ptr = (uint32_t *)up_intstack_base();
|
||||
uint32_t *ptr = (uint32_t *)arm_intstack_base();
|
||||
#else
|
||||
uint32_t *ptr = (uint32_t *)&g_intstackalloc;
|
||||
#endif
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_intstack_base
|
||||
* Name: arm_intstack_base
|
||||
*
|
||||
* Description:
|
||||
* Return a pointer to the "base" the correct interrupt stack allocation
|
||||
@@ -157,7 +157,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_SMP) && CONFIG_ARCH_INTERRUPTSTACK > 7
|
||||
static inline uintptr_t up_intstack_base(void)
|
||||
static inline uintptr_t arm_intstack_base(void)
|
||||
{
|
||||
uintptr_t base = (uintptr_t)g_irqstack_alloc;
|
||||
#if CONFIG_SMP_NCPUS > 1
|
||||
@@ -171,7 +171,7 @@ static inline uintptr_t up_intstack_base(void)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_intstack_top
|
||||
* Name: arm_intstack_top
|
||||
*
|
||||
* Description:
|
||||
* Return a pointer to the "top" the correct interrupt stack for the
|
||||
@@ -180,9 +180,9 @@ static inline uintptr_t up_intstack_base(void)
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_SMP) && CONFIG_ARCH_INTERRUPTSTACK > 7
|
||||
static inline uintptr_t up_intstack_top(void)
|
||||
static inline uintptr_t arm_intstack_top(void)
|
||||
{
|
||||
return up_intstack_base() + INTSTACK_SIZE;
|
||||
return arm_intstack_base() + INTSTACK_SIZE;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ extern "C"
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_intstack_base
|
||||
* Name: arm_intstack_base
|
||||
*
|
||||
* Description:
|
||||
* Set the current stack pointer to the "base" the correct interrupt stack
|
||||
@@ -146,7 +146,7 @@ extern "C"
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_SMP) && CONFIG_ARCH_INTERRUPTSTACK > 7
|
||||
static inline uintptr_t up_intstack_base(void)
|
||||
static inline uintptr_t arm_intstack_base(void)
|
||||
{
|
||||
uintptr_t base = (uintptr_t)g_instack_alloc;
|
||||
#if CONFIG_SMP_NCPUS > 1
|
||||
|
||||
Reference in New Issue
Block a user