From: Sascha Wildner Date: Fri, 23 Dec 2011 14:50:06 +0000 (+0100) Subject: vkernel/vkernel64: Add suword32() to fix build. X-Git-Tag: v3.0.0~312 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/9c793cde5643e407e634d9fb2141fe65fe57b6de vkernel/vkernel64: Add suword32() to fix build. --- diff --git a/sys/platform/vkernel/platform/copyio.c b/sys/platform/vkernel/platform/copyio.c index 66b2be6..411e47a 100644 --- a/sys/platform/vkernel/platform/copyio.c +++ b/sys/platform/vkernel/platform/copyio.c @@ -240,6 +240,14 @@ suword(void *base, long word) return(-1); } +int +suword32(void *base, int word) +{ + if (copyout(&word, base, sizeof(word)) == 0) + return(0); + return(-1); +} + /* * Fetch an short word (16 bits) from user space */ diff --git a/sys/platform/vkernel64/platform/copyio.c b/sys/platform/vkernel64/platform/copyio.c index 4fe7fd5..464f49e 100644 --- a/sys/platform/vkernel64/platform/copyio.c +++ b/sys/platform/vkernel64/platform/copyio.c @@ -240,6 +240,14 @@ suword(void *base, long word) return(-1); } +int +suword32(void *base, int word) +{ + if (copyout(&word, base, sizeof(word)) == 0) + return(0); + return(-1); +} + /* * Fetch an short word (16 bits) from user space */