summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2003-11-05 02:41:50 +0000
committerEric Anholt <anholt@freebsd.org>2003-11-05 02:41:50 +0000
commit8feb046d8c3c9d531e25c3f854b94593f0a1964b (patch)
tree42814f209c42ad307f6a65c90136a1d998021e95
parente8f5b01a4087fac1e44f9f34894dc20a1cbf1e49 (diff)
Args for the BSD DRM_PUT_USER_UNCHECKED were swapped.
-rw-r--r--bsd-core/drm_os_freebsd.h2
-rw-r--r--bsd/drm_os_freebsd.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/bsd-core/drm_os_freebsd.h b/bsd-core/drm_os_freebsd.h
index 480a53f5..00a44023 100644
--- a/bsd-core/drm_os_freebsd.h
+++ b/bsd-core/drm_os_freebsd.h
@@ -271,7 +271,7 @@ for ( ret = 0 ; !ret && !(condition) ; ) { \
copyout(arg2, arg1, arg3)
#define DRM_GET_USER_UNCHECKED(val, uaddr) \
((val) = fuword(uaddr), 0)
-#define DRM_PUT_USER_UNCHECKED(val, uaddr) \
+#define DRM_PUT_USER_UNCHECKED(uaddr, val) \
suword(uaddr, val)
/* DRM_READMEMORYBARRIER() prevents reordering of reads.
diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h
index 480a53f5..00a44023 100644
--- a/bsd/drm_os_freebsd.h
+++ b/bsd/drm_os_freebsd.h
@@ -271,7 +271,7 @@ for ( ret = 0 ; !ret && !(condition) ; ) { \
copyout(arg2, arg1, arg3)
#define DRM_GET_USER_UNCHECKED(val, uaddr) \
((val) = fuword(uaddr), 0)
-#define DRM_PUT_USER_UNCHECKED(val, uaddr) \
+#define DRM_PUT_USER_UNCHECKED(uaddr, val) \
suword(uaddr, val)
/* DRM_READMEMORYBARRIER() prevents reordering of reads.