]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/x86/boot/compressed/error.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-eoan-kernel.git] / arch / x86 / boot / compressed / error.c
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
dc425a6e
KC
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"
6b1cc946 8#include "error.h"
dc425a6e
KC
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}