2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <aros/kernel.h>
7 #include <aros/libcall.h>
8 #include <exec/alerts.h>
10 #include <bootconsole.h>
13 #include <kernel_base.h>
14 #include <kernel_debug.h>
15 #include "alert_arch.h"
17 AROS_LH2(void, KrnDisplayAlert
,
18 AROS_LHA(uint32_t, code
, D0
),
19 AROS_LHA(const char *, text
, A0
),
20 struct KernelBase
*, KernelBase
, 35, Kernel
)
24 /* Display the alert */
25 krnDisplayAlert(text
, KernelBase
);
27 if ((code
& AT_DeadEnd
) && (scr_Type
!= SCR_UNKNOWN
))
30 * If we have a framebuffer, the user have seen the alert.
31 * Unfortunately we have no input yet, so just stop.
33 PrintString("\nSystem halted. Reset the machine.", KernelBase
);
37 /* Recoverable alerts don't halt the machine. They are just dropped to debug log. */