summaryrefslogtreecommitdiff
path: root/src/arch/arm64/div0.c
blob: 6b31139a9e0cf11d91794ae3f46d8e5539ba221f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: GPL-2.0-or-later */

#include <console/console.h>

void __div0(void); // called from asm so no need for a prototype in a header

/* Replacement (=dummy) for GNU/Linux division-by zero handler */
/* recursion is ok here because we have no formats ... */
void __div0 (void)
{
	printk(BIOS_EMERG, "DIVIDE BY ZERO! continuing ...\n");
}