mirror of
https://github.com/deadw00d/AROS.git
synced 2026-03-19 11:39:53 +00:00
39 lines
954 B
C
39 lines
954 B
C
/*
|
|
Copyright (C) 1995-2017, The AROS Development Team. All rights reserved.
|
|
|
|
Desc: Early bootup section
|
|
*/
|
|
|
|
#include <aros/symbolsets.h>
|
|
#include <proto/exec.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include "exec_intern.h"
|
|
|
|
extern void AROS_SLIB_ENTRY(MemoryRawIOInit, Exec, 84)();
|
|
extern void AROS_SLIB_ENTRY(MemoryRawPutChar, Exec, 86)(UBYTE chr);
|
|
|
|
int exec_boot(struct ExecBase *SysBase)
|
|
{
|
|
struct TagItem *msg = KrnGetBootInfo();
|
|
char *cmdline = (char *)LibGetTagData(KRN_CmdLine, 0, msg);
|
|
|
|
/*
|
|
* Enable type of debug output chosen by user.
|
|
* 'serial' is handled in libbootconsole.
|
|
*/
|
|
if (strstr(cmdline, "debug=memory"))
|
|
{
|
|
SetFunction(&SysBase->LibNode, -84 * LIB_VECTSIZE,
|
|
AROS_SLIB_ENTRY(MemoryRawIOInit, Exec, 84));
|
|
SetFunction(&SysBase->LibNode, -86 * LIB_VECTSIZE,
|
|
AROS_SLIB_ENTRY(MemoryRawPutChar, Exec, 86));
|
|
}
|
|
RawIOInit();
|
|
|
|
return 1;
|
|
}
|
|
|
|
ADD2INITLIB(exec_boot, 0)
|