summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/pci-gart.c
diff options
context:
space:
mode:
authorAndrew Hastings2007-05-11 11:23:19 +0200
committerLinus Torvalds2007-05-11 21:53:00 +0200
commit547c5355d1b1167af39e315c82aa9ff1398596f4 (patch)
tree423d8e1473c5731040b35ae5665dc72f5233abb4 /arch/x86_64/kernel/pci-gart.c
parenti386: Fix compilation of verify_cpu.S on old binutils (diff)
downloadkernel-qcow2-linux-547c5355d1b1167af39e315c82aa9ff1398596f4.tar.gz
kernel-qcow2-linux-547c5355d1b1167af39e315c82aa9ff1398596f4.tar.xz
kernel-qcow2-linux-547c5355d1b1167af39e315c82aa9ff1398596f4.zip
x86_64: off-by-two error in aperture.c
I'm using a custom BIOS to configure the northbridge GART at address 0x80000000, size 2G. Linux complains: "Aperture from northbridge cpu 0 beyond 4GB. Ignoring." I think there's an off-by-two error in arch/x86_64/kernel/aperture.c: AK: use correct types for i386 Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86_64/kernel/pci-gart.c')
-rw-r--r--arch/x86_64/kernel/pci-gart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/pci-gart.c b/arch/x86_64/kernel/pci-gart.c
index 373ef66ca1dc..ae091cdc1a4d 100644
--- a/arch/x86_64/kernel/pci-gart.c
+++ b/arch/x86_64/kernel/pci-gart.c
@@ -476,7 +476,7 @@ static __init unsigned read_aperture(struct pci_dev *dev, u32 *size)
aper_base <<= 25;
aper_size = (32 * 1024 * 1024) << aper_order;
- if (aper_base + aper_size >= 0xffffffff || !aper_size)
+ if (aper_base + aper_size > 0x100000000UL || !aper_size)
aper_base = 0;
*size = aper_size;