ACPI / tables: add DSDT AmlCode new declaration name support
[linux/fpc-iii.git] / arch / x86 / boot / compressed / error.c
blobc881878e56d313f004787c81269e230b05d9bc3a
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Callers outside of misc.c need access to the error reporting routines,
4 * but the *_putstr() functions need to stay in misc.c because of how
5 * memcpy() and memmove() are defined for the compressed boot environment.
6 */
7 #include "misc.h"
8 #include "error.h"
10 void warn(char *m)
12 error_putstr("\n\n");
13 error_putstr(m);
14 error_putstr("\n\n");
17 void error(char *m)
19 warn(m);
20 error_putstr(" -- System halted");
22 while (1)
23 asm("hlt");