[PATCH 3/4] ARM: Do not use BUG() in pbl code

Sascha Hauer s.hauer at pengutronix.de
Wed Jan 29 04:33:38 EST 2014


BUG() uses printf which is not available in pbl, so do not use it here.
This becomes necessary when multiple CPU architectures are compiled in.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/cpu/cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/cpu/cache.c b/arch/arm/cpu/cache.c
index 223e308..34d3090 100644
--- a/arch/arm/cpu/cache.c
+++ b/arch/arm/cpu/cache.c
@@ -102,7 +102,7 @@ int arm_set_cache_functions(void)
 		break;
 #endif
 	default:
-		BUG();
+		while(1);
 	}
 
 	return 0;
-- 
1.8.5.3




More information about the barebox mailing list