summaryrefslogtreecommitdiffstats
path: root/sys/dev/agp
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2012-07-09 16:23:59 +0000
committermarcel <marcel@FreeBSD.org>2012-07-09 16:23:59 +0000
commitee1db48cca4e56205ce8cfb4ef7e3dfaf53c11fd (patch)
tree72ae7c64a75b9dd6baed9687aaaec55d236663b0 /sys/dev/agp
parent102f066eeb479d4503a020a3ecbfbb2b141ba740 (diff)
downloadFreeBSD-src-ee1db48cca4e56205ce8cfb4ef7e3dfaf53c11fd.zip
FreeBSD-src-ee1db48cca4e56205ce8cfb4ef7e3dfaf53c11fd.tar.gz
Revert revision 238172 of agp_i810.c. Correctness is considered more
important than avoiding confusion. Feedback from: kib, jhb
Diffstat (limited to 'sys/dev/agp')
-rw-r--r--sys/dev/agp/agp_i810.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/agp/agp_i810.c b/sys/dev/agp/agp_i810.c
index 54ddfdc..c0f592c 100644
--- a/sys/dev/agp/agp_i810.c
+++ b/sys/dev/agp/agp_i810.c
@@ -74,6 +74,7 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h>
#include <machine/resource.h>
+#include <machine/md_var.h>
#include <sys/rman.h>
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 <<
OpenPOWER on IntegriCloud