2 #include <exec/types.h>
3 #include <exec/execbase.h>
4 #include <dos/dosextens.h>
9 #include <proto/exec.h>
13 ULONG __asm __interrupt
ResetHandler(register __a1
struct globaldata
*g
)
15 Signal(&g
->myproc
->pr_Task
, g
->resethandlersignal
);
19 #elif defined(__MORPHOS__)
21 #include <emul/emulregs.h>
23 static ULONG
ResetHandler_native(void)
25 struct globaldata
*g
= (void *) REG_A1
;
26 Signal(&g
->myproc
->pr_Task
, g
->resethandlersignal
);
30 const struct EmulLibEntry ResetHandler __READONLY__
=
34 (void (*)(void)) ResetHandler_native
40 AROS_UFH2(ULONG
, ResetHandler
,
41 AROS_UFHA(struct globaldata
*, g
, A1
),
42 AROS_UFHA(struct ExecBase
*, SysBase
, A6
))
46 Signal(&g
->myproc
->pr_Task
, g
->resethandlersignal
);
54 #warning "Add the implementation for your platform"