blob: ce8f42aa57678311ca4597e92e3d0d798d0b436a [file] [log] [blame]
Furquan Shaikh2af76f42014-04-28 16:39:40 -07001/*
2 * (C) Copyright 2002
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Furquan Shaikh2af76f42014-04-28 16:39:40 -07005 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Furquan Shaikh2af76f42014-04-28 16:39:40 -070014 */
15
16#include <console/console.h>
17
18void __div0(void); // called from asm so no need for a prototype in a header
19
20/* Replacement (=dummy) for GNU/Linux division-by zero handler */
21/* recursion is ok here because we have no formats ... */
22void __div0 (void)
23{
24 printk(BIOS_EMERG, "DIVIDE BY ZERO! continuing ... \n");
25}