[U-Boot] [PATCH 03/21] arm: Call "panic()" instead of "hang()" for div-by-zero
Kyle Moffett
Kyle.D.Moffett at boeing.com
Mon Mar 7 18:37:24 CET 2011
Divide-by-zero errors should be controlled by the CONFIG_PANIC_HANG
configuration variable just like any other kind of trappable U-Boot bug.
Signed-off-by: Kyle Moffett <Kyle.D.Moffett at boeing.com>
Cc: Albert Aribaud <albert.aribaud at free.fr>
---
arch/arm/lib/div0.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/lib/div0.c b/arch/arm/lib/div0.c
index 6267bf1..4ec25dc 100644
--- a/arch/arm/lib/div0.c
+++ b/arch/arm/lib/div0.c
@@ -21,10 +21,10 @@
* MA 02111-1307 USA
*/
+#include <common.h>
+
/* Replacement (=dummy) for GNU/Linux division-by zero handler */
void __div0 (void)
{
- extern void hang (void);
-
- hang();
+ panic("ERROR: divide by zero!");
}
--
1.7.2.3
More information about the U-Boot
mailing list