summaryrefslogtreecommitdiff
path: root/src/atipreinit.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2007-03-18 16:38:26 +0200
committerGeorge Sapountzis <gsap7@yahoo.gr>2007-03-21 20:18:52 +0200
commitdfd07b6e99020d1db43d7ce0cae4423d8c6b1f05 (patch)
tree6fc7b3f66593a27d6d35423c213f051204d1cb4d /src/atipreinit.c
parente674338a98c50800637b8ebc01adf3aec2a3eb38 (diff)
[mach64] Drop checking that BAR base + size fits in 32 bit.
I can't see how these tests could fail on 32-bit. OTOH they are potentially problematic with 64-bit PCI addresses.
Diffstat (limited to 'src/atipreinit.c')
-rw-r--r--src/atipreinit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/atipreinit.c b/src/atipreinit.c
index 62bd9267..f5cf6b38 100644
--- a/src/atipreinit.c
+++ b/src/atipreinit.c
@@ -434,10 +434,7 @@ ATIPreInit
/* Set MMIO address from PCI configuration space, if available */
if ((pATI->Block0Base = pVideo->memBase[2]))
{
- if (pATI->Block0Base >= (CARD32)(-1 << pVideo->size[2]))
- pATI->Block0Base = 0;
- else
- pATI->Block0Base += 0x0400U;
+ pATI->Block0Base += 0x0400U;
}
Block0Base = pATI->Block0Base; /* save */