PFS3 AIO 2.2 updates. No functional PFS3 changes.
[AROS.git] / rom / filesys / pfs3 / fs / diskchange.c
blob308f6cacd1f4e2a3e05650215382bfd53374f7f0
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 #ifdef __MORPHOS__
13 #include <emul/emulregs.h>
15 static ULONG DiskChangeHandler_native(void)
17 struct globaldata *g = (void *) REG_A1;
18 Signal(&g->myproc->pr_Task, g->diskchangesignal);
19 return 0;
22 const struct EmulLibEntry DiskChangeHandler __READONLY__ =
24 TRAP_LIB,
26 (void (*)(void)) DiskChangeHandler_native
29 #elif __AROS__
31 #undef SysBase
33 AROS_UFH2(ULONG, DiskChangeHandler,
34 AROS_UFHA(struct globaldata *, g, A1),
35 AROS_UFHA(struct ExecBase *, SysBase, A6))
37 AROS_USERFUNC_INIT
39 Signal(&g->myproc->pr_Task, g->diskchangesignal);
40 return 0;
42 AROS_USERFUNC_EXIT
45 #else
47 #warning "Add the implementation for your platform"
49 #endif