Documentation: Fix sphinx configuration
[coreboot.git] / src / console / die.c
blob3fc88a3e4c42c6b834f3a91bb477204fe24d349d
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <halt.h>
6 /*
7 * The method should be overwritten in mainboard directory to signal that a
8 * fatal error had occurred. On boards that do share the same EC and where the
9 * EC is capable of controlling LEDs or a buzzer the method can be overwritten
10 * in EC directory instead.
12 __weak void die_notify(void)
16 /* Report a fatal error */
17 void __noreturn die(const char *fmt, ...)
19 va_list args;
21 va_start(args, fmt);
22 vprintk(BIOS_EMERG, fmt, args);
23 va_end(args);
25 die_notify();
26 halt();