From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from m12-17.163.com ([220.181.12.17]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cPsGd-0007tu-6c for barebox@lists.infradead.org; Sat, 07 Jan 2017 14:46:49 +0000 From: DU HUANPENG Date: Sat, 7 Jan 2017 22:45:26 +0800 Message-Id: <1483800326-14277-1-git-send-email-opentkernel@163.com> 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] arm: decalare div0 as weak function To: barebox@lists.infradead.org Cc: Du Huanpeng From: Du Huanpeng Signed-off-by: Du Huanpeng --- arch/arm/lib/div0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/lib/div0.c b/arch/arm/lib/div0.c index 852cb72..d4f3b6c 100644 --- a/arch/arm/lib/div0.c +++ b/arch/arm/lib/div0.c @@ -17,11 +17,11 @@ * */ #include +#include extern void __div0(void); -/* Replacement (=dummy) for GNU/Linux division-by zero handler */ -void __div0 (void) +__weak void __div0 (void) { panic("division by zero\n"); } -- 2.7.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox