OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ed08279
)
Use fuword32 for DRM_GET_USER_UNCHECKED when available. May help on 64-bit
author
Eric Anholt
<anholt@freebsd.org>
Mon, 14 Feb 2005 03:28:01 +0000
(
03:28
+0000)
committer
Eric Anholt
<anholt@freebsd.org>
Mon, 14 Feb 2005 03:28:01 +0000
(
03:28
+0000)
platforms.
Submitted by: Jung-uk Kim, jkim at niksun dot com
bsd-core/drmP.h
patch
|
blob
|
history
diff --git
a/bsd-core/drmP.h
b/bsd-core/drmP.h
index
30e6be6
..
fbe1266
100644
(file)
--- a/
bsd-core/drmP.h
+++ b/
bsd-core/drmP.h
@@
-331,8
+331,13
@@
typedef vaddr_t vm_offset_t;
copyin(arg2, arg1, arg3)
#define DRM_COPY_TO_USER_UNCHECKED(arg1, arg2, arg3) \
copyout(arg2, arg1, arg3)
-#define DRM_GET_USER_UNCHECKED(val, uaddr) \
+#if __FreeBSD_version > 500000
+#define DRM_GET_USER_UNCHECKED(val, uaddr) \
+ ((val) = fuword32(uaddr), 0)
+#else
+#define DRM_GET_USER_UNCHECKED(val, uaddr) \
((val) = fuword(uaddr), 0)
+#endif
#define cpu_to_le32(x) htole32(x)
#define le32_to_cpu(x) le32toh(x)