mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
xtensa: Rename up_stack_color to xtensa_stack_color since it's an
internal function. Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
committed by
Xiang Xiao
parent
2366795786
commit
4edc5fb701
@@ -344,7 +344,7 @@ void xtensa_pminitialize(void);
|
|||||||
/* Debug ********************************************************************/
|
/* Debug ********************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
void up_stack_color(void *stackbase, size_t nbytes);
|
void xtensa_stack_color(void *stackbase, size_t nbytes);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ int up_create_stack(struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
|||||||
* water marks.
|
* water marks.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
up_stack_color(tcb->stack_base_ptr, tcb->adj_stack_size);
|
xtensa_stack_color(tcb->stack_base_ptr, tcb->adj_stack_size);
|
||||||
#endif
|
#endif
|
||||||
tcb->flags |= TCB_FLAG_FREE_STACK;
|
tcb->flags |= TCB_FLAG_FREE_STACK;
|
||||||
|
|
||||||
@@ -263,7 +263,7 @@ int up_create_stack(struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_stack_color
|
* Name: xtensa_stack_color
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Write a well know value into the stack
|
* Write a well know value into the stack
|
||||||
@@ -271,7 +271,7 @@ int up_create_stack(struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
void up_stack_color(void *stackbase, size_t nbytes)
|
void xtensa_stack_color(void *stackbase, size_t nbytes)
|
||||||
{
|
{
|
||||||
uintptr_t start;
|
uintptr_t start;
|
||||||
uintptr_t end;
|
uintptr_t end;
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ void up_initial_state(struct tcb_s *tcb)
|
|||||||
* water marks.
|
* water marks.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
up_stack_color(tcb->stack_alloc_ptr, 0);
|
xtensa_stack_color(tcb->stack_alloc_ptr, 0);
|
||||||
#endif /* CONFIG_STACK_COLORATION */
|
#endif /* CONFIG_STACK_COLORATION */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ int up_use_stack(struct tcb_s *tcb, void *stack, size_t stack_size)
|
|||||||
* water marks.
|
* water marks.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
up_stack_color(tcb->stack_base_ptr, tcb->adj_stack_size);
|
xtensa_stack_color(tcb->stack_base_ptr, tcb->adj_stack_size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user