Added a test for MUIA_Listview_SelectChange.
[AROS.git] / rom / filesys / pfs3 / fs / resethandler.c
blobd8f91f687d1c2cfbfaf38d5d2d9acda2be5c81d6
1 #define __USE_SYSBASE
2 #include <exec/types.h>
3 #include <exec/execbase.h>
4 #include <dos/dosextens.h>
6 #include "blocks.h"
7 #include "struct.h"
9 #include <proto/exec.h>
11 #if defined(__SASC)
13 ULONG __asm __interrupt ResetHandler(register __a1 struct globaldata *g)
15 Signal(&g->myproc->pr_Task, g->resethandlersignal);
16 return 0;
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);
27 return 0;
30 const struct EmulLibEntry ResetHandler __READONLY__ =
32 TRAP_LIB,
34 (void (*)(void)) ResetHandler_native
37 #elif __AROS__
39 #undef SysBase
40 AROS_UFH2(ULONG, ResetHandler,
41 AROS_UFHA(struct globaldata *, g, A1),
42 AROS_UFHA(struct ExecBase *, SysBase, A6))
44 AROS_USERFUNC_INIT
46 Signal(&g->myproc->pr_Task, g->resethandlersignal);
47 return 0;
49 AROS_USERFUNC_EXIT
52 #else
54 #warning "Add the implementation for your platform"
56 #endif