diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-04-28 23:18:43 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-04-28 23:18:43 +0000 |
commit | 87ed795ff354eb6e9431c87ab315349326c1af79 (patch) | |
tree | 226aa6bfaf9f6bf0e8fa9e26c44f8e0c5a84a6aa | |
parent | 5f1e2399eb5b76537c91fc9aba2569f2c289a284 (diff) |
Fix a typo: On takedown the mtrr operation is MEMRANGE_SET_REMOVE, not
_UPDATE.
-rw-r--r-- | bsd-core/drm_drv.c | 2 | ||||
-rw-r--r-- | bsd/drm_drv.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bsd-core/drm_drv.c b/bsd-core/drm_drv.c index b4d53c0cd..24878482e 100644 --- a/bsd-core/drm_drv.c +++ b/bsd-core/drm_drv.c @@ -567,7 +567,7 @@ static int DRM(takedown)( drm_device_t *dev ) mrdesc.mr_base = map->offset; mrdesc.mr_len = map->size; mrdesc.mr_flags = MDF_WRITECOMBINE; - act = MEMRANGE_SET_UPDATE; + act = MEMRANGE_SET_REMOVE; bcopy(DRIVER_NAME, &mrdesc.mr_owner, strlen(DRIVER_NAME)); retcode = mem_range_attr_set(&mrdesc, &act); map->mtrr=1; diff --git a/bsd/drm_drv.h b/bsd/drm_drv.h index b4d53c0cd..24878482e 100644 --- a/bsd/drm_drv.h +++ b/bsd/drm_drv.h @@ -567,7 +567,7 @@ static int DRM(takedown)( drm_device_t *dev ) mrdesc.mr_base = map->offset; mrdesc.mr_len = map->size; mrdesc.mr_flags = MDF_WRITECOMBINE; - act = MEMRANGE_SET_UPDATE; + act = MEMRANGE_SET_REMOVE; bcopy(DRIVER_NAME, &mrdesc.mr_owner, strlen(DRIVER_NAME)); retcode = mem_range_attr_set(&mrdesc, &act); map->mtrr=1; |