typo $(cppflags) -> $(CPPFLAGS)
[AROS.git] / arch / i386-pc / exec / debug_init.c
blob5985b5cd3155eefb3ff8b89e7eb01bac75aeec3f
1 /*
2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Early bootup section
6 Lang: english
7 */
9 #include <aros/symbolsets.h>
10 #include <proto/exec.h>
12 #include <string.h>
14 #include "exec_intern.h"
16 extern void AROS_SLIB_ENTRY(MemoryRawIOInit, Exec, 84)();
17 extern void AROS_SLIB_ENTRY(MemoryRawPutChar, Exec, 86)(UBYTE chr);
19 int exec_boot(struct ExecBase *SysBase)
21 struct TagItem *msg = KrnGetBootInfo();
22 char *cmdline = (char *)LibGetTagData(KRN_CmdLine, 0, msg);
25 * Enable type of debug output chosen by user.
26 * 'serial' is handled in libbootconsole.
28 if (strstr(cmdline, "debug=memory"))
30 SetFunction(&SysBase->LibNode, -84 * LIB_VECTSIZE,
31 AROS_SLIB_ENTRY(MemoryRawIOInit, Exec, 84));
32 SetFunction(&SysBase->LibNode, -86 * LIB_VECTSIZE,
33 AROS_SLIB_ENTRY(MemoryRawPutChar, Exec, 86));
35 RawIOInit();
37 return 1;
40 ADD2INITLIB(exec_boot, 0)