1 #include <aros/kernel.h>
2 #include <aros/libcall.h>
3 #include <exec/alerts.h>
5 #include <bootconsole.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
)
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
);
32 /* Recoverable alerts don't halt the machine. They are just dropped to debug log. */