2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
9 struct DosLibrary
*DOSBase
;
10 static unsigned int level
= 0;
14 Printf("Nest level: %lu\n", ++level
);
20 Printf("Exit() did not work!\n");
23 __startup
static AROS_PROCH(Start
, argstr
, argsize
, SysBase
)
30 DOSBase
= (struct DosLibrary
*)OpenLibrary("dos.library", 36);
34 /* Let's check correctness of stack size passing */
35 me
= (struct Process
*)FindTask(NULL
);
36 stackbase
= me
->pr_ReturnAddr
;
37 Printf("Launch stack size is %ld, total size is %ld\n", stackbase
[0], me
->pr_Task
.tc_SPUpper
- me
->pr_Task
.tc_SPLower
);
41 CloseLibrary(&DOSBase
->dl_lib
);