1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include <common.h> #include <init.h> #include <linux/types.h> #include <linux/string.h> #include <linux/ctype.h> void __noreturn hang(void) { while (1); } void __noreturn panic(const char *fmt, ...) { va_list args; va_start(args, fmt); printf(fmt, args); va_end(args); while(1); }