[PATCH] arm: decalare div0 as weak function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Du Huanpeng <u74147@xxxxxxxxx>

Signed-off-by: Du Huanpeng <u74147@xxxxxxxxx>
---
 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 <common.h>
+#include <linux/compiler.h>
 
 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux