Forgotten commit. Added automount.
[AROS.git] / arch / all-pc / kernel / displayalert.c
blob9957ffef7e925a12d9945960ee22680833eb48d7
1 #include <aros/kernel.h>
2 #include <aros/libcall.h>
3 #include <exec/alerts.h>
5 #include <bootconsole.h>
6 #include <inttypes.h>
8 #include <kernel_base.h>
9 #include <kernel_debug.h>
10 #include "alert_arch.h"
12 AROS_LH2(void, KrnDisplayAlert,
13 AROS_LHA(uint32_t, code, D0),
14 AROS_LHA(const char *, text, A0),
15 struct KernelBase *, KernelBase, 35, Kernel)
17 AROS_LIBFUNC_INIT
19 /* Display the alert */
20 krnDisplayAlert(text, KernelBase);
22 if ((code & AT_DeadEnd) && (scr_Type != SCR_UNKNOWN))
25 * If we have a framebuffer, the user have seen the alert.
26 * Unfortunately we have no input yet, so just stop.
28 PrintString("\nSystem halted. Reset the machine.", KernelBase);
29 for(;;);
32 /* Recoverable alerts don't halt the machine. They are just dropped to debug log. */
34 AROS_LIBFUNC_EXIT