exec/tasks.h: Don't change the ETask definition if compiled for Morphos
[AROS.git] / rom / exec / doresetcallbacks.c
blobccdebf5baea12d3eed3b21e3ec9488f46de6e64a
1 /*
2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Add interrupt client to chain of interrupt server
6 Lang: english
7 */
9 #include <aros/asmcall.h>
10 #include <exec/interrupts.h>
12 #include "exec_intern.h"
13 #include "exec_util.h"
15 /* Call this function from within your ColdReboot() implementation
16 in order to execute installed reset handlers.
17 For improved safety callbacks are called in a Disable()d state.
18 This function does not need to Enable(). */
20 void Exec_DoResetCallbacks(struct IntExecBase *IntSysBase)
22 struct Interrupt *i;
24 Disable();
26 for (i = (struct Interrupt *)IntSysBase->ResetHandlers.lh_Head; i->is_Node.ln_Succ;
27 i = (struct Interrupt *)i->is_Node.ln_Succ)
28 AROS_UFIC1(i->is_Code, i->is_Data);