2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <aros/config.h>
8 #include <exec/alerts.h>
12 #include "kernel_base.h"
13 #include "kernel_debug.h"
14 #include "kernel_android.h"
16 static char panicBuffer
[1024];
18 void krnPanic(struct KernelBase
*KernelBase
, const char *fmt
, ...)
20 const char *hdr
= "Critical boot failure\n";
21 char *ptr
= panicBuffer
;
24 /* Prepend the header */
28 /* vsprintf() here comes from librom.a */
30 vsprintf(ptr
, fmt
, ap
);
35 /* Very early panic (failure to load host's libc). Just dump to debug output. */
41 * Alert code is used by display server to specify buttons set in the dialog.
42 * We signal it's a deadend.
44 SendAlert(AT_DeadEnd
, panicBuffer
);
46 /* We simply return here, allowing the process to exit. */