From cbf1d2e3f69f6525b7e31174e552ac7cce080ec9 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Mon, 9 Jul 2012 16:23:59 +0000 Subject: [PATCH] Revert revision 238172 of agp_i810.c. Correctness is considered more important than avoiding confusion. Feedback from: kib, jhb --- sys/dev/agp/agp_i810.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/agp/agp_i810.c b/sys/dev/agp/agp_i810.c index 54ddfdccbcb..c0f592ce97f 100644 --- a/sys/dev/agp/agp_i810.c +++ b/sys/dev/agp/agp_i810.c @@ -74,6 +74,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include MALLOC_DECLARE(M_AGP); @@ -1438,7 +1439,7 @@ agp_i810_attach(device_t dev) if (error) return (error); - if (ptoa((vm_paddr_t)realmem) > + if (ptoa((vm_paddr_t)Maxmem) > (1ULL << sc->match->driver->busdma_addr_mask_sz) - 1) { device_printf(dev, "agp_i810 does not support physical " "memory above %ju.\n", (uintmax_t)(1ULL <<