2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
9 #include <exec/types.h>
10 #include <exec/execbase.h>
11 #include <proto/exec.h>
12 #include <aros/libcall.h>
14 extern void AROS_SLIB_ENTRY(CopyMem_000
,Exec
,104)(void);
15 extern void AROS_SLIB_ENTRY(CopyMem_020
,Exec
,104)(void);
17 /* See rom/kernel/copymem.c for documentation */
19 AROS_LH3I(void, CopyMem
,
20 AROS_LHA(CONST_APTR
, source
, A0
),
21 AROS_LHA(APTR
, dest
, A1
),
22 AROS_LHA(IPTR
, size
, D0
),
23 struct ExecBase
*, SysBase
, 104, Exec
)
29 if (SysBase
->AttnFlags
& AFF_68020
) {
31 func
= AROS_SLIB_ENTRY(CopyMem_020
, Exec
, 104);
34 func
= AROS_SLIB_ENTRY(CopyMem_000
, Exec
, 104);
36 SetFunction((struct Library
*)SysBase
, -LIB_VECTSIZE
* 104, func
);
39 return CopyMem(source
, dest
, size
);