diff --git a/arch/sh/src/common/up_internal.h b/arch/sh/src/common/up_internal.h index 3c708a387c7..204ef6ca0d4 100644 --- a/arch/sh/src/common/up_internal.h +++ b/arch/sh/src/common/up_internal.h @@ -98,12 +98,6 @@ extern uint32 *current_regs; */ extern uint32 g_heapbase; - -/* Address of the saved user stack pointer */ - -#if CONFIG_ARCH_INTERRUPTSTACK > 3 -extern uint32 g_userstack; -#endif #endif /**************************************************************************** diff --git a/arch/sh/src/sh1/chip.h b/arch/sh/src/sh1/chip.h index bffa19bd94e..c10322a13a4 100644 --- a/arch/sh/src/sh1/chip.h +++ b/arch/sh/src/sh1/chip.h @@ -59,6 +59,14 @@ * Public Data ************************************************************************************/ +/* Address of the saved user stack pointer */ + +#ifndef __ASSEMBLY__ +# if CONFIG_ARCH_INTERRUPTSTACK > 3 + extern uint32 g_userstack; +# endif +#endif + /************************************************************************************ * Public Functions ************************************************************************************/