refactored some code. compiles now without suppresing any warning with gcc-6.3.0.
[AROS.git] / rom / kernel / kernel_romtags.h
blob8dceacbce35267a3cfacace84a039569a4d4eb30
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
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));