blob: e474f73d6ed8a6c977c988029fe3c6100ed5d99d [file] [log] [blame]
Stefan Reinauer52db0b92012-12-07 17:15:04 -08001/*
2 * (C) Copyright 2002
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Stefan Reinauer52db0b92012-12-07 17:15:04 -08005 * 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.
Stefan Reinauer52db0b92012-12-07 17:15:04 -080014 */
15
Ronald G. Minnichbc3abbb2013-01-30 15:05:19 -060016#include <console/console.h>
17
Stefan Reinauer52db0b92012-12-07 17:15:04 -080018void __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 */
Ronald G. Minnichbc3abbb2013-01-30 15:05:19 -060021/* recursion is ok here because we have no formats ... */
Logan Carlsonc058d1c2017-05-30 15:31:10 -060022void __div0(void)
Stefan Reinauer52db0b92012-12-07 17:15:04 -080023{
Elyes HAOUAS0638b602016-08-21 12:14:11 +020024 printk(BIOS_EMERG, "DIVIDE BY ZERO! continuing ...\n");
Stefan Reinauer52db0b92012-12-07 17:15:04 -080025}