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