1 #include <aros/config.h>
3 #include <exec/alerts.h>
7 #include "kernel_base.h"
8 #include "kernel_debug.h"
9 #include "kernel_android.h"
11 static char panicBuffer
[1024];
13 void krnPanic(struct KernelBase
*KernelBase
, const char *fmt
, ...)
15 const char *hdr
= "Critical boot failure\n";
16 char *ptr
= panicBuffer
;
19 /* Prepend the header */
23 /* vsprintf() here comes from librom.a */
25 vsprintf(ptr
, fmt
, ap
);
30 /* Very early panic (failure to load host's libc). Just dump to debug output. */
36 * Alert code is used by display server to specify buttons set in the dialog.
37 * We signal it's a deadend.
39 SendAlert(AT_DeadEnd
, panicBuffer
);
41 /* We simply return here, allowing the process to exit. */