From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8RXA-0004Gi-5Y for barebox@lists.infradead.org; Wed, 29 Jan 2014 09:34:12 +0000 From: Sascha Hauer Date: Wed, 29 Jan 2014 10:33:38 +0100 Message-Id: <1390988019-31405-3-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1390988019-31405-1-git-send-email-s.hauer@pengutronix.de> References: <1390988019-31405-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/4] ARM: Do not use BUG() in pbl code To: barebox@lists.infradead.org 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 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 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox