From: Kevin O'Connor Date: Wed, 6 Jan 2010 00:50:04 +0000 (-0500) Subject: Fix sign error preventing incorrect memory over 4gig calculation. X-Git-Tag: rel-0.5.1~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=669c991dde53ae0d3b6dfb0a05f22c408f76eacc;p=seabios.git 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 @@ 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);