Copyright clean-up (part 1):
[AROS.git] / arch / all-pc / kernel / displayalert.c
blobeb590cd6acbc7f760fb67a99b47920c2505e529f
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/kernel.h>
7 #include <aros/libcall.h>
8 #include <exec/alerts.h>
10 #include <bootconsole.h>
11 #include <inttypes.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)
22 AROS_LIBFUNC_INIT
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);
34 for(;;);
37 /* Recoverable alerts don't halt the machine. They are just dropped to debug log. */
39 AROS_LIBFUNC_EXIT