more re-factoring
[AROS.git] / arch / i386-pc / exec / debug_init.c
blobd9efec436d306e26cbf315cfff4b1c63f80d258e
1 /*
2 Copyright © 1995-2011, 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>
11 #include <proto/kernel.h>
13 #include <string.h>
15 #include "exec_intern.h"
17 extern void AROS_SLIB_ENTRY(MemoryRawIOInit, Exec, 84)();
18 extern void AROS_SLIB_ENTRY(MemoryRawPutChar, Exec, 86)(UBYTE chr);
20 int exec_boot(struct ExecBase *SysBase)
22 struct TagItem *msg = KrnGetBootInfo();
23 char *cmdline = (char *)LibGetTagData(KRN_CmdLine, 0, msg);
26 * Enable type of debug output chosen by user.
27 * 'serial' is handled in libbootconsole.
29 if (strstr(cmdline, "debug=memory"))
31 SetFunction(&SysBase->LibNode, -84 * LIB_VECTSIZE,
32 AROS_SLIB_ENTRY(MemoryRawIOInit, Exec, 84));
33 SetFunction(&SysBase->LibNode, -86 * LIB_VECTSIZE,
34 AROS_SLIB_ENTRY(MemoryRawPutChar, Exec, 86));
36 RawIOInit();
38 return 1;
41 ADD2INITLIB(exec_boot, 0)