summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/include/asm/common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/include/asm/common.h b/arch/arm/include/asm/common.h
index 97bfdc4..c32cdfe 100644
--- a/arch/arm/include/asm/common.h
+++ b/arch/arm/include/asm/common.h
@@ -48,7 +48,10 @@ static inline unsigned long get_sp(void)
static inline void arm_setup_stack(unsigned long top)
{
- __asm__ __volatile__("mov sp, %0" : : "r"(top));
+ __asm__ __volatile__("mov sp, %0"
+ :
+ : "r"(top)
+ : "sp");
}
#endif /* __ASM_ARM_COMMON_H */