[PATCH 1/3] ARM bcm2835: Fix noreturn function does return

Sascha Hauer s.hauer at pengutronix.de
Sat Jan 26 06:23:21 EST 2013


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/mach-bcm2835/core.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-bcm2835/core.c b/arch/arm/mach-bcm2835/core.c
index b0fec8b..f44ecd5 100644
--- a/arch/arm/mach-bcm2835/core.c
+++ b/arch/arm/mach-bcm2835/core.c
@@ -97,5 +97,7 @@ void __noreturn reset_cpu (unsigned long addr)
 	rstc |= PM_RSTC_WRCFG_FULL_RESET;
 	writel(PM_PASSWORD | RESET_TIMEOUT, PM_WDOG);
 	writel(PM_PASSWORD | rstc, PM_RSTC);
+
+	while (1);
 }
 EXPORT_SYMBOL(reset_cpu);
-- 
1.7.10.4




More information about the barebox mailing list