Test initialisation of MUIA_List_AdjustWidth and MUIA_List_AdjustHeight, and
[AROS.git] / arch / .unmaintained / m68k-emul / exception.c
blob252ab399321a6d4dafd57110fd61d6df659d8165
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/execbase.h>
8 /******************************************************************************
10 NAME */
11 #include <proto/exec.h>
13 AROS_LH0(void, Exception,
15 /* LOCATION */
16 struct ExecBase *, SysBase, 11, Exec)
18 /* FUNCTION
20 INPUTS
22 RESULT
24 NOTES
26 EXAMPLE
28 BUGS
30 SEE ALSO
32 INTERNALS
34 HISTORY
36 ******************************************************************************/
38 struct Task * this = FindTask (NULL);
39 BYTE nestCnt;
40 ULONG flags;
42 this->tc_Flags &= ~TF_EXCEPT;
44 nestCnt = SysBase->IDNestCnt;
45 SysBase->IDNestCnt = 0;
47 while ((flags = (this->tc_SigExcept & this->tc_SigRecvd)))
49 flags ^= this->tc_SigExcept;
50 flags ^= this->tc_SigRecvd;
52 Enable ();
54 this->tc_SigExcept = (*((ULONG_FUNC)(this->tc_ExceptCode))) (this->tc_ExceptData);
56 Disable ();
59 SysBase->IDNestCnt = nestCnt;
60 } /* Exception */