[syslinux:syslinux-5.xx] bios: Don' t truncate memory size needed to 16 bits

syslinux-bot for H. Peter Anvin hpa at linux.intel.com
Wed Feb 26 14:21:03 PST 2014


Commit-ID:  60797dd4984cde06c0545bf804af4482b09cd977
Gitweb:     http://www.syslinux.org/commit/60797dd4984cde06c0545bf804af4482b09cd977
Author:     H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Wed, 26 Feb 2014 14:18:36 -0800
Committer:  H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Wed, 26 Feb 2014 14:18:36 -0800

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 <hpa at linux.intel.com>

---
 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);
 


More information about the Syslinux-commits mailing list