]> xenbits.xensource.com Git - seabios.git/commitdiff
Fix sign error preventing incorrect memory over 4gig calculation.
authorKevin O'Connor <kevin@koconnor.net>
Wed, 6 Jan 2010 00:50:04 +0000 (19:50 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 6 Jan 2010 00:50:04 +0000 (19:50 -0500)
src/post.c

index 2d20ffa3ce921e652baaa1751014f617db380870..fb3b37f96d06d268d5071b828e91c272c22ef88c 100644 (file)
@@ -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);