From 669c991dde53ae0d3b6dfb0a05f22c408f76eacc Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 5 Jan 2010 19:50:04 -0500 Subject: [PATCH] Fix sign error preventing incorrect memory over 4gig calculation. --- src/post.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5