2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Change the stack of a task.
9 #include <aros/debug.h>
11 /******************************************************************************
14 #include <exec/tasks.h>
15 #include <proto/exec.h>
17 AROS_LH1(void, StackSwap
,
20 AROS_LHA(struct StackSwapStruct
*, sss
, A0
),
23 struct ExecBase
*, SysBase
, 122, Exec
)
26 Change the stack of a task.
29 sss - The description of the new stack
32 There will be a new stack.
35 Calling this routine the first time will change sss and
36 calling it a second time, the changes will be undone.
41 This function isn't really portable across compilers, as
42 it relies on the compiler NOT TO perform certain kind
45 This function is therefore declared obsolete and should
46 never be used. In its place CallWithStack() can be used instead.
51 This is a symmetrical routine. If you call it twice, then
52 everything will be as it was before.
56 ******************************************************************************/
60 kprintf("StackSwap() is deprecated and should NEVER be called. ABORTING.\n");