From ec74299c7c0f6e705e6ba2329001b92f9941868e Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 2 Apr 2010 01:29:22 -0400 Subject: [PATCH] macos 32 bit platform user address transform make the ioctl32 translator work as expected, e.g., create proper user addresses. Change-Id: Ia690dee5f9978d679e942a9954f2123df4a96bc2 Reviewed-on: http://gerrit.openafs.org/1687 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/afs_syscall.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/afs/afs_syscall.c b/src/afs/afs_syscall.c index b581423dd1..f5dcf56a0e 100644 --- a/src/afs/afs_syscall.c +++ b/src/afs/afs_syscall.c @@ -36,8 +36,13 @@ static void afs_ioctl32_to_afs_ioctl(const struct afs_ioctl32 *src, struct afs_ioctl *dst) { +#ifdef AFS_DARWIN100_ENV + dst->in = CAST_USER_ADDR_T(src->in); + dst->out = CAST_USER_ADDR_T(src->out); +#else dst->in = (char *)(unsigned long)src->in; dst->out = (char *)(unsigned long)src->out; +#endif dst->in_size = src->in_size; dst->out_size = src->out_size; }