From 60797dd4984cde06c0545bf804af4482b09cd977 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 26 Feb 2014 14:18:36 -0800 Subject: [PATCH] bios: Don't truncate memory size needed to 16 bits We can't truncate the memory size needed to 16 bits *before* we convert it to kilobytes... Signed-off-by: H. Peter Anvin --- core/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/init.c b/core/init.c index 41e5fea..3531ace 100644 --- a/core/init.c +++ b/core/init.c @@ -28,7 +28,7 @@ static inline void check_escapes(void) * NOTE: Linux doesn't use all of real_mode_seg, but we use * the same segment for COMBOOT images, which can use all 64K. */ - uint16_t mem; + uint32_t mem; __intcall(0x12, &ireg, &oreg); -- 2.7.4