Minor fixes to comments.
[AROS.git] / rom / exec / doresetcallbacks.c
blobf2797a689333b79a29cad91ae5881585e1ba743c
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_INTC1(i->is_Code, i->is_Data);