diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2007-03-18 16:38:26 +0200 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2007-03-21 20:18:52 +0200 |
commit | dfd07b6e99020d1db43d7ce0cae4423d8c6b1f05 (patch) | |
tree | 6fc7b3f66593a27d6d35423c213f051204d1cb4d /src/atipreinit.c | |
parent | e674338a98c50800637b8ebc01adf3aec2a3eb38 (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.c | 5 |
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 */ |