aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-01-05 19:50:04 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-01-05 19:50:04 -0500
commit669c991dde53ae0d3b6dfb0a05f22c408f76eacc (patch)
tree56d7b047344077adfea95651eedb02878a606c7a
parent7e6bd3e2547ed47dc5b7bd6f989ee5dcd6d0da30 (diff)
downloadseabios-669c991dde53ae0d3b6dfb0a05f22c408f76eacc.tar.gz
Fix sign error preventing incorrect memory over 4gig calculation.
-rw-r--r--src/post.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post.c b/src/post.c
index 2d20ffa3..fb3b37f9 100644
--- a/src/post.c
+++ b/src/post.c
@@ -117,7 +117,7 @@ ram_probe(void)
// Check for memory over 4Gig
u64 high = ((inb_cmos(CMOS_MEM_HIGHMEM_LOW) << 16)
- | (inb_cmos(CMOS_MEM_HIGHMEM_MID) << 24)
+ | ((u32)inb_cmos(CMOS_MEM_HIGHMEM_MID) << 24)
| ((u64)inb_cmos(CMOS_MEM_HIGHMEM_HIGH) << 32));
RamSizeOver4G = high;
add_e820(0x100000000ull, high, E820_RAM);