From 8aba2cbd9394362fc68e4a310f53b3a2492daed4 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 28 Jan 2014 09:39:07 +0100 Subject: [PATCH] ARM: Do not use BUG() in pbl code 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 --- 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 223e3089b..34d30902b 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;