add some commented enclosures around the BUS_BASE calls for Alpha

platforms.
main
Alan Hourihane 2001-05-04 14:05:13 +00:00
parent 5f5d850013
commit 0813760110
1 changed files with 4 additions and 1 deletions

View File

@ -67,10 +67,12 @@ extern int xf86RemoveSIGIOHandler(int fd);
# endif # endif
#endif #endif
/* No longer needed with CVS kernel modules on alpha
#if defined(__alpha__) && defined(__linux__) #if defined(__alpha__) && defined(__linux__)
extern unsigned long _bus_base(void); extern unsigned long _bus_base(void);
#define BUS_BASE _bus_base() #define BUS_BASE _bus_base()
#endif #endif
*/
/* Not all systems have MAP_FAILED defined */ /* Not all systems have MAP_FAILED defined */
#ifndef MAP_FAILED #ifndef MAP_FAILED
@ -494,11 +496,12 @@ int drmAddMap(int fd,
drm_map_t map; drm_map_t map;
map.offset = offset; map.offset = offset;
/* No longer needed with CVS kernel modules on alpha
#ifdef __alpha__ #ifdef __alpha__
/* Make sure we add the bus_base to all but shm */
if (type != DRM_SHM) if (type != DRM_SHM)
map.offset += BUS_BASE; map.offset += BUS_BASE;
#endif #endif
*/
map.size = size; map.size = size;
map.handle = 0; map.handle = 0;
map.type = type; map.type = type;