![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 /* 0003 * Callers outside of misc.c need access to the error reporting routines, 0004 * but the *_putstr() functions need to stay in misc.c because of how 0005 * memcpy() and memmove() are defined for the compressed boot environment. 0006 */ 0007 #include "misc.h" 0008 #include "error.h" 0009 0010 void warn(char *m) 0011 { 0012 error_putstr("\n\n"); 0013 error_putstr(m); 0014 error_putstr("\n\n"); 0015 } 0016 0017 void error(char *m) 0018 { 0019 warn(m); 0020 error_putstr(" -- System halted"); 0021 0022 while (1) 0023 asm("hlt"); 0024 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |