From c840ae948795b204a940560dda385ffbff1b187b Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 17 Feb 2009 02:53:24 +0000 Subject: [PATCH] Complete coding of M16C port git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1510 42af7a65-404d-4744-a932-0658087f49c3 --- arch/sh/src/common/up_internal.h | 6 ------ arch/sh/src/sh1/chip.h | 8 ++++++++ 2 files changed, 8 insertions(+), 6 deletions(-) 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 ************************************************************************************/