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.moff...@boeing.com> Cc: Albert Aribaud <albert.arib...@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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot