summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Noland <rnoland@2hip.net>2008-07-21 18:04:02 -0400
committerRobert Noland <rnoland@2hip.net>2008-07-21 18:06:52 -0400
commitf57f01f02843747d423f2e1c2936f0b987c5b067 (patch)
treeffee15a3aac8e023ac12d353aea765cbc4cd53af
parentb5cddbcc1536d70dfa9fec833732b2a715d82e65 (diff)
[FreeBSD] Improve upper_32_bits define.
Thanks to airlied.
-rw-r--r--bsd-core/drmP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h
index 2f2ffb3c..6b91a76b 100644
--- a/bsd-core/drmP.h
+++ b/bsd-core/drmP.h
@@ -632,7 +632,7 @@ struct drm_ati_pcigart_info {
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : (1ULL<<(n)) - 1)
#endif
-#define upper_32_bits(_val) (((u64)(_val)) >> 32)
+#define upper_32_bits(n) ((u32)(((n) >> 16) >> 16))
struct drm_driver_info {
int (*load)(struct drm_device *, unsigned long flags);