aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2014-02-26 14:18:36 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2014-02-26 14:18:36 -0800
commit60797dd4984cde06c0545bf804af4482b09cd977 (patch)
treefa3362b1b7b5d62077ffb6a6b53e2968560e1724 /core
parentef74f1b6ead6ee8ab30bf2585a1e5ab3ea329a2c (diff)
downloadsyslinux-60797dd4984cde06c0545bf804af4482b09cd977.tar.gz
syslinux-60797dd4984cde06c0545bf804af4482b09cd977.tar.xz
syslinux-60797dd4984cde06c0545bf804af4482b09cd977.zip
bios: Don't truncate memory size needed to 16 bitssyslinux-5.xx
We can't truncate the memory size needed to 16 bits *before* we convert it to kilobytes... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'core')
-rw-r--r--core/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/init.c b/core/init.c
index 41e5fea1..3531ace6 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);