diff options
| author | Eric Anholt <anholt@FreeBSD.org> | 2002-09-13 04:17:28 +0000 |
|---|---|---|
| committer | Eric Anholt <anholt@FreeBSD.org> | 2002-09-13 04:17:28 +0000 |
| commit | ea3796796a5c3c342ca03e27297b7a21f69d1056 (patch) | |
| tree | de7b246fb050b4f8e850290156ab95d6fdc707ca /sys/dev/agp | |
| parent | 69dcc1ae0b1b72ee87aebd0ba54887a4afcfe98a (diff) | |
Notes
Diffstat (limited to 'sys/dev/agp')
| -rw-r--r-- | sys/dev/agp/agp_i810.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/agp/agp_i810.c b/sys/dev/agp/agp_i810.c index a8ac38e2d0b1a..4353f80a3f2a6 100644 --- a/sys/dev/agp/agp_i810.c +++ b/sys/dev/agp/agp_i810.c @@ -446,9 +446,10 @@ agp_i810_unbind_page(device_t dev, int offset) return EINVAL; if ( sc->chiptype == CHIP_I830 ) { - if ( (offset >> AGP_PAGE_SHIFT) < sc->stolen ) + if ( (offset >> AGP_PAGE_SHIFT) < sc->stolen ) { device_printf(dev, "trying to unbind from stolen memory"); - return EINVAL; + return EINVAL; + } } WRITE4(AGP_I810_GTT + (offset >> AGP_PAGE_SHIFT) * 4, 0); @@ -570,11 +571,8 @@ agp_i810_bind_memory(device_t dev, struct agp_memory *mem, if (mem->am_type != 1) return agp_generic_bind_memory(dev, mem, offset); - if ( sc->chiptype == CHIP_I830 ) { - if ((offset >> AGP_PAGE_SHIFT) < sc->stolen) - device_printf(dev, "trying to bind into stolen memory"); + if ( sc->chiptype == CHIP_I830 ) return EINVAL; - } for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE) { WRITE4(AGP_I810_GTT + (offset >> AGP_PAGE_SHIFT) * 4, |
