1 #include <proto/exec.h>
4 struct DosLibrary
*DOSBase
;
5 static unsigned int level
= 0;
9 Printf("Nest level: %lu\n", ++level
);
15 Printf("Exit() did not work!\n");
18 AROS_ENTRY(__startup
static int, Start
,
19 AROS_UFHA(char *, argstr
, A0
),
20 AROS_UFHA(ULONG
, argsize
, D0
),
21 struct ExecBase
*, SysBase
)
28 DOSBase
= (struct DosLibrary
*)OpenLibrary("dos.library", 36);
32 /* Let's check correctness of stack size passing */
33 me
= (struct Process
*)FindTask(NULL
);
34 stackbase
= me
->pr_ReturnAddr
;
35 Printf("Launch stack size is %ld, total size is %ld\n", stackbase
[0], me
->pr_Task
.tc_SPUpper
- me
->pr_Task
.tc_SPLower
);
39 CloseLibrary(&DOSBase
->dl_lib
);