Date: Mon, 9 Jul 2012 16:23:59 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r238301 - head/sys/dev/agp Message-ID: <201207091623.q69GNxhf028127@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marcel Date: Mon Jul 9 16:23:59 2012 New Revision: 238301 URL: http://svn.freebsd.org/changeset/base/238301 Log: Revert revision 238172 of agp_i810.c. Correctness is considered more important than avoiding confusion. Feedback from: kib, jhb Modified: head/sys/dev/agp/agp_i810.c Modified: head/sys/dev/agp/agp_i810.c ============================================================================== --- head/sys/dev/agp/agp_i810.c Mon Jul 9 15:44:35 2012 (r238300) +++ head/sys/dev/agp/agp_i810.c Mon Jul 9 16:23:59 2012 (r238301) @@ -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 <<
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207091623.q69GNxhf028127>