From 31318a8ce56848e346bc79ff6c4b941a78451b60 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 23 Jun 2006 11:54:35 +0000 Subject: [PATCH] library interface for vectored safecopy variant. --- lib/syslib/Makefile.in | 1 + lib/syslib/sys_vsafecopy.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 lib/syslib/sys_vsafecopy.c diff --git a/lib/syslib/Makefile.in b/lib/syslib/Makefile.in index 2a4b8b025..0c8584e7d 100644 --- a/lib/syslib/Makefile.in +++ b/lib/syslib/Makefile.in @@ -42,6 +42,7 @@ libsys_FILES=" \ sys_out.c \ sys_physcopy.c \ sys_safecopy.c \ + sys_vsafecopy.c \ sys_sdevio.c \ sys_segctl.c \ sys_setalarm.c \ diff --git a/lib/syslib/sys_vsafecopy.c b/lib/syslib/sys_vsafecopy.c new file mode 100644 index 000000000..343dd0f6d --- /dev/null +++ b/lib/syslib/sys_vsafecopy.c @@ -0,0 +1,18 @@ + +#include "syslib.h" + +#include + +PUBLIC int sys_vsafecopy(struct vscp_vec *vec, int els) +{ +/* Vectored variant of sys_safecopy*. */ + + message copy_mess; + + copy_mess.VSCP_VEC_ADDR = vec; + copy_mess.VSCP_VEC_SIZE = els; + + return(_taskcall(SYSTASK, SYS_VSAFECOPY, ©_mess)); + +} + -- 2.44.0