2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
5 Desc: Early bootup section
9 #include <aros/symbolsets.h>
10 #include <proto/exec.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));
40 ADD2INITLIB(exec_boot
, 0)