summaryrefslogtreecommitdiffstats
path: root/sys/dev/agp
diff options
context:
space:
mode:
authortanimura <tanimura@FreeBSD.org>2006-10-15 05:04:06 +0000
committertanimura <tanimura@FreeBSD.org>2006-10-15 05:04:06 +0000
commit13e71177dff78f1df3cf6d09ca3bee8711716a81 (patch)
tree44dea2deefa097eeadcd529ad47e1581dd04632a /sys/dev/agp
parent31fbaf5d5c4fee7ed738e969e382411caf2e603f (diff)
downloadFreeBSD-src-13e71177dff78f1df3cf6d09ca3bee8711716a81.zip
FreeBSD-src-13e71177dff78f1df3cf6d09ca3bee8711716a81.tar.gz
Fix the wraparound of memsize >=2GB.
Diffstat (limited to 'sys/dev/agp')
-rw-r--r--sys/dev/agp/agp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/agp/agp.c b/sys/dev/agp/agp.c
index 92426ae..7fdbb73 100644
--- a/sys/dev/agp/agp.c
+++ b/sys/dev/agp/agp.c
@@ -180,7 +180,7 @@ agp_free_gatt(struct agp_gatt *gatt)
free(gatt, M_AGP);
}
-static int agp_max[][2] = {
+static u_int agp_max[][2] = {
{0, 0},
{32, 4},
{64, 28},
@@ -197,7 +197,8 @@ int
agp_generic_attach(device_t dev)
{
struct agp_softc *sc = device_get_softc(dev);
- int rid, memsize, i;
+ int rid, i;
+ u_int memsize;
/*
* Find and map the aperture.
OpenPOWER on IntegriCloud