fix a silly typo. Hurray ! Now tdfx driver works. Using Eric's

libglide3.so.13. mga driver works, but second start of Xserver results
    in reboot. Seems as though there's some problem unbinding agp memory.
This commit is contained in:
Alan Hourihane 2001-05-11 13:29:38 +00:00
parent 47f91000df
commit a2815c78da
4 changed files with 6 additions and 6 deletions

View file

@ -198,7 +198,7 @@ int DRM(addmap)( DRM_OS_IOCTL )
#ifdef __alpha__
map->offset += dev->hose->mem_space->start;
#endif
map->offset = map->offset + dev->agp->base;
map->offset += dev->agp->base;
map->mtrr = dev->agp->agp_mtrr; /* for getmap */
break;
#endif
@ -248,7 +248,7 @@ int DRM(addmap)( DRM_OS_IOCTL )
DRM_OS_RETURN(EFAULT);
#endif
#ifdef __FreeBSD__
((drm_map_t *)data)->handle = (void *)map;
((drm_map_t *)data)->handle = (void *)map->offset;
#endif
}
return 0;

View file

@ -1170,7 +1170,7 @@ int DRM(lock)( DRM_OS_IOCTL )
}
DRM_DEBUG( "%d (pid %d) requests lock (0x%08x), flags = 0x%08x\n",
lock.context, current->pid,
lock.context, DRM_OS_CURRENTPID,
dev->lock.hw_lock->lock, lock.flags );
#if __HAVE_DMA_QUEUE

View file

@ -198,7 +198,7 @@ int DRM(addmap)( DRM_OS_IOCTL )
#ifdef __alpha__
map->offset += dev->hose->mem_space->start;
#endif
map->offset = map->offset + dev->agp->base;
map->offset += dev->agp->base;
map->mtrr = dev->agp->agp_mtrr; /* for getmap */
break;
#endif
@ -248,7 +248,7 @@ int DRM(addmap)( DRM_OS_IOCTL )
DRM_OS_RETURN(EFAULT);
#endif
#ifdef __FreeBSD__
((drm_map_t *)data)->handle = (void *)map;
((drm_map_t *)data)->handle = (void *)map->offset;
#endif
}
return 0;

View file

@ -1170,7 +1170,7 @@ int DRM(lock)( DRM_OS_IOCTL )
}
DRM_DEBUG( "%d (pid %d) requests lock (0x%08x), flags = 0x%08x\n",
lock.context, current->pid,
lock.context, DRM_OS_CURRENTPID,
dev->lock.hw_lock->lock, lock.flags );
#if __HAVE_DMA_QUEUE