Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / .unmaintained / dummy / dispatch.c
blob0bc67fee4acbd76fe0e019146952f0c85acc90e7
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
5 #include <exec/execbase.h>
6 #include <clib/exec_protos.h>
8 APTR sp;
10 void dispatch(struct ExecBase *SysBase)
12 struct Task *me;
13 struct List *list;
14 me=SysBase->ThisTask;
15 me->tc_SPReg=sp;
16 if(me->tc_Flags&TF_SWITCH)
17 me->tc_Switch();
18 me->tc_IDNestCnt=SysBase->IDNestCnt;
19 SysBase->IDNestCnt=-1;
20 list=&SysBase->TaskReady;
21 me=(struct Task *)list->lh_Head;
22 list->lh_Head=me->tc_Node.ln_Succ;
23 me->tc_Node.ln_Succ->ln_Pred=(struct Node *)list;
24 SysBase->ThisTask=me;
25 me->tc_State=TS_RUN;
26 SysBase->IDNestCnt=me->tc_IDNestCnt;
27 if(me->tc_Flags&TF_LAUNCH)
28 me->tc_Launch();
29 sp=me->tc_SPReg;
30 if(me->tc_Flags&TF_EXCEPT)
32 Disable();
33 Exception();
34 Enable();