4 #include <exec/types.h>
5 #include <asm/macros.h>
7 /* external data definitions */
9 extern const UBYTE core_id
[];
10 extern const UBYTE _END
;
12 extern const UBYTE Exec_Start
;
13 extern const UBYTE Exec_End
;
15 extern const ULONG ExecFunctions
[];
17 /* external function definitions */
20 ULONG
** RomTagScanner(struct ExecBase
*, UWORD
**);
22 /* inlined functions taken from c library, needed by bootup */
24 static inline __attribute__((always_inline
))
25 char *strncpy(char *dest
, const char *src
, ULONG n
)
37 static inline __attribute__((always_inline
))
38 APTR
memcpy(APTR dest
, APTR src
, ULONG n
)
42 ((UBYTE
*)dest
)[n
] = ((UBYTE
*)src
)[n
];
46 static inline __attribute__((always_inline
))
47 void bzero(APTR s
, ULONG n
)
53 #define offsetof(struct_, field) ((int)(&((struct struct_*)0UL)->field))
55 #endif /* _STARTUP_H */