commit | 669c991dde53ae0d3b6dfb0a05f22c408f76eacc | [log] [tgz] |
---|---|---|
author | Kevin O'Connor <kevin@koconnor.net> | Tue Jan 05 19:50:04 2010 -0500 |
committer | Kevin O'Connor <kevin@koconnor.net> | Tue Jan 05 19:50:04 2010 -0500 |
tree | 56d7b047344077adfea95651eedb02878a606c7a | |
parent | 7e6bd3e2547ed47dc5b7bd6f989ee5dcd6d0da30 [diff] |
Fix sign error preventing incorrect memory over 4gig calculation.
diff --git a/src/post.c b/src/post.c index 2d20ffa..fb3b37f 100644 --- a/src/post.c +++ b/src/post.c
@@ -117,7 +117,7 @@ // 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);