From 3f7279cb8ec1d4e65028df955ae17b8081940b4f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 27 Oct 2003 22:05:38 +0000 Subject: [PATCH] Add a DRM_PUT_USER_UNCHECKED, which will be used by an upcoming radeon change. --- bsd-core/drm_os_freebsd.h | 2 ++ bsd/drm_os_freebsd.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bsd-core/drm_os_freebsd.h b/bsd-core/drm_os_freebsd.h index 89231ec..4822b05 100644 --- a/bsd-core/drm_os_freebsd.h +++ b/bsd-core/drm_os_freebsd.h @@ -269,6 +269,8 @@ for ( ret = 0 ; !ret && !(condition) ; ) { \ copyin(arg2, arg1, arg3) #define DRM_GET_USER_UNCHECKED(val, uaddr) \ ((val) = fuword(uaddr), 0) +#define DRM_PUT_USER_UNCHECKED(val, uaddr) \ + suword(uaddr, val) /* DRM_READMEMORYBARRIER() prevents reordering of reads. * DRM_WRITEMEMORYBARRIER() prevents reordering of writes. diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h index 89231ec..4822b05 100644 --- a/bsd/drm_os_freebsd.h +++ b/bsd/drm_os_freebsd.h @@ -269,6 +269,8 @@ for ( ret = 0 ; !ret && !(condition) ; ) { \ copyin(arg2, arg1, arg3) #define DRM_GET_USER_UNCHECKED(val, uaddr) \ ((val) = fuword(uaddr), 0) +#define DRM_PUT_USER_UNCHECKED(val, uaddr) \ + suword(uaddr, val) /* DRM_READMEMORYBARRIER() prevents reordering of reads. * DRM_WRITEMEMORYBARRIER() prevents reordering of writes. -- 2.7.4