xref: /aosp_15_r20/external/coreboot/src/arch/arm64/div0.c (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #include <console/console.h>
4 
5 void __div0(void); // called from asm so no need for a prototype in a header
6 
7 /* Replacement (=dummy) for GNU/Linux division-by zero handler */
8 /* recursion is ok here because we have no formats ... */
__div0(void)9 void __div0(void)
10 {
11 	printk(BIOS_EMERG, "DIVIDE BY ZERO! continuing ...\n");
12 }
13