2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <aros/asmcall.h>
9 #include <exec/execbase.h>
10 #include <exec/memory.h>
11 #include <exec/resident.h>
13 /* Look for ROMTags in specified address ranges and build resident list */
14 APTR
krnRomTagScanner(struct MemHeader
*mh
, UWORD
*ranges
[]);
15 /* Find a resident with specified name */
16 struct Resident
*krnFindResident(struct Resident
**resList
, const char *name
);
18 /* Find ROMTags and call exec.library early entry point to create ExecBase */
19 struct ExecBase
*krnPrepareExecBase(UWORD
*ranges
[], struct MemHeader
*mh
, struct TagItem
*bootMsg
);
21 /* Magic. Described in rom/exec/exec_init.c. */
22 static inline struct ExecBase
*krnInitExecBase(struct Resident
*res
, struct MemHeader
*mh
, struct TagItem
*bootMsg
)
24 return AROS_UFC3(struct ExecBase
*, res
->rt_Init
,
25 AROS_UFCA(struct MemHeader
*, mh
, D0
),
26 AROS_UFCA(struct TagItem
*, bootMsg
, A0
),
27 AROS_UFCA(struct ExecBase
*, NULL
, A6
));