mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Revert revision 238172 of agp_i810.c. Correctness is considered more
important than avoiding confusion. Feedback from: kib, jhb
This commit is contained in:
parent
bb21242625
commit
cbf1d2e3f6
1 changed files with 2 additions and 1 deletions
|
|
@ -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 <<
|
||||
|
|
|
|||
Loading…
Reference in a new issue