2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <aros/config.h>
13 #include "kernel_base.h"
14 #include "kernel_debug.h"
17 * This definition allows to move this buffer away from .bss.
18 * Can be used on native, by using, for example, zero page.
19 * This condition is considered fatal, there's no return.
21 #ifndef KERNEL_PANIC_BUFFER
22 static char panicBuffer
[1024];
23 #define KERNEL_PANIC_BUFFER panicBuffer
26 void krnPanic(struct KernelBase
*KernelBase
,const char *fmt
, ...)
28 const char *hdr
= "Critical boot failure\n";
29 char *ptr
= KERNEL_PANIC_BUFFER
;
32 /* Prepend the header */
36 /* vsprintf() here comes from librom.a */
38 vsprintf(ptr
, fmt
, ap
);
41 krnDisplayAlert(KERNEL_PANIC_BUFFER
, KernelBase
);
43 #if AROS_FLAVOUR & AROS_FLAVOUR_STANDALONE
44 /* Hosted AROS may quit here */