summaryrefslogtreecommitdiff
path: root/src/g80_driver.c
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2008-04-27 16:23:28 -0700
committerAaron Plattner <aplattner@nvidia.com>2008-04-28 14:45:11 -0700
commit4aa43a2b66e473f9154f1582f5cf0e4b4596e485 (patch)
tree01d6985512e6a6712bb53b8575e288593b80de22 /src/g80_driver.c
parent0ddee2347109e8c64bd2cb4693b97c3fa3aab94b (diff)
Fix a few startup bugs.
Diffstat (limited to 'src/g80_driver.c')
-rw-r--r--src/g80_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/g80_driver.c b/src/g80_driver.c
index 1a83544..99ea737 100644
--- a/src/g80_driver.c
+++ b/src/g80_driver.c
@@ -367,7 +367,8 @@ G80PreInit(ScrnInfoPtr pScrn, int flags)
}
pNv->architecture = pNv->reg[0] >> 20 & 0x1ff;
- pNv->videoRam = pNv->RamAmountKBytes = (pNv->reg[0x0010020C/4] & 0xFFF00000) >> 10;
+ tmp = pNv->reg[0x0010020C/4];
+ pNv->videoRam = pNv->RamAmountKBytes = tmp >> 10 | (tmp & 1) << 22;
/* Determine the size of BAR1 */
/* Some configs have BAR1 < total RAM < 256 MB */