2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
7 #include <aros/libcall.h>
8 #include <clib/exec_protos.h>
9 #include <exec/execbase.h>
14 /* Function prototype needed on Linux-M68K*/
17 AROS_LH2(ULONG
,handler
,
18 AROS_LHA(ULONG
,signals
,D0
),
19 AROS_LHA(APTR
,exceptData
,A1
),
20 struct ExecBase
*,SysBase
,0,Test
)
37 printf("sig1: %d\n",s1
);
41 printf("sig2: %d\n",s2
);
42 oldexc
=SysBase
->ThisTask
->tc_ExceptCode
;
43 SysBase
->ThisTask
->tc_ExceptCode
=&AROS_SLIB_ENTRY(handler
,Test
);
44 SetExcept(1<<s2
,1<<s2
);
45 Signal(SysBase
->ThisTask
,(1<<s2
)|(1<<s1
));
47 SysBase
->ThisTask
->tc_ExceptCode
=oldexc
;
48 printf("got: %08lx\n",s
);