diff options
Diffstat (limited to 'sys/dev/agp/agp.c')
-rw-r--r-- | sys/dev/agp/agp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/agp/agp.c b/sys/dev/agp/agp.c index 5bf48a1..2ba8727 100644 --- a/sys/dev/agp/agp.c +++ b/sys/dev/agp/agp.c @@ -746,8 +746,7 @@ agp_get_info(device_t dev, struct agp_info *info) info->ai_mode = pci_read_config(dev, agp_find_caps(dev) + AGP_STATUS, 4); info->ai_aperture_base = rman_get_start(sc->as_aperture); - info->ai_aperture_size = (rman_get_end(sc->as_aperture) - - rman_get_start(sc->as_aperture)) + 1; + info->ai_aperture_size = rmang_get_size(sc->as_aperture); info->ai_memory_allowed = sc->as_maxmem; info->ai_memory_used = sc->as_allocated; } |