summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2000-08-09 11:47:39 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2000-08-09 11:47:39 +0000
commita2020a33349c91a0036b1fde8ae0d0229ae8e005 (patch)
treec57c8013f8c4ce6c9932ec1924dd14932ac5a486
parent4234dc27e082a24f60cda5b9639fcd409338c2f2 (diff)
couple more AXP updates. more to follow.tdfx-2-1-20000905-freeze
-rw-r--r--libdrm/xf86drm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index e4bc53bc..167c9915 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/xf86drm.c
@@ -71,8 +71,6 @@ extern int xf86RemoveSIGIOHandler(int fd);
#ifdef __alpha__
extern unsigned long _bus_base(void);
#define BUS_BASE _bus_base()
-#else
-#define BUS_BASE (0)
#endif
/* Not all systems have MAP_FAILED defined */
@@ -504,7 +502,8 @@ int drmAddMap(int fd,
map.offset = offset;
#ifdef __alpha__
- if (!(type & DRM_SHM))
+ /* Make sure we add the bus_base to all but shm */
+ if (type != DRM_SHM)
map.offset += BUS_BASE;
#endif
map.size = size;