2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
6 #include <exec/types.h>
7 #include <aros/libcall.h>
11 #error "PrepareContext() has been changed. Additional tagList param, etc."
12 #error "This one here needs to be rewritten!"
14 BOOL
PrepareContext(struct Task
*task
, APTR entryPoint
, APTR fallBack
,
15 struct TagItem
*tagList
, struct ExecBase
*SysBase
)
17 UBYTE
*sp
=(UBYTE
*)stackPointer
;
21 mc68000 version. As long as no FPU is in use this works for the
22 other mc680xx brands as well.
25 /* Push fallback address */
29 /* Now push the context. Prepare a rts first (pc). */
31 *(APTR
*)sp
=entryPoint
;
33 /* Push 15 registers */
41 } /* PrepareContext */