Loading...
Note: File does not exist in v3.15.
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"
9
10void warn(char *m)
11{
12 error_putstr("\n\n");
13 error_putstr(m);
14 error_putstr("\n\n");
15}
16
17void error(char *m)
18{
19 warn(m);
20 error_putstr(" -- System halted");
21
22 while (1)
23 asm("hlt");
24}