Fix the wraparound of memsize >=2GB.

This commit is contained in:
Seigo Tanimura 2006-10-15 05:04:06 +00:00
parent 7e2393ff51
commit 7370bc7770
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163362
2 changed files with 6 additions and 4 deletions

View File

@ -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.

View File

@ -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.