Aros/Developer/Docs/Examples/StackSwap

The AmigaOS StackSwap function isn't designed to be reliably used from C code. This is why AmigaOS 4 has the NewStackRun function f.e.

Here's a solution that uses CreateNewProc: