arm: decalare div0 as weak function
PATCH 1/1 arm: decalare div0 as weak function
From: Du Huanpeng <[email protected]>
Signed-off-by Du Huanpeng <[email protected]>
--- arch/arm/lib/div0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/lib/div0.c +2 -2
@@ -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" ); }
Signature · 8 lines
2.7.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Hi,
Quoted 12 lines · DU HUANPENG
From: Du Huanpeng <[email protected]>
Signed-off-by Du Huanpeng <[email protected]>--- arch/arm/lib/div0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/lib/div0.c +0
-0
arch/arm/lib/div0.c line 24
Quoted 10 lines
arch/arm/lib/div0.c +2
-2@@ -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 )
Could you explain why and in which situations you need this?
Sascha
Quoted 13 lines
arch/arm/lib/div0.c +0
-0{panic ("division by zero\n" ); }Signature · 8 lines
2.7.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 2 lines · Sascha Hauer
Could you explain why and in which situations you need this?
hmm... define a new __div0(), or forget about it. :)
Quoted 3 lines
Sascha
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox