diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2014-02-26 14:18:36 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-02-26 14:18:36 -0800 |
commit | 60797dd4984cde06c0545bf804af4482b09cd977 (patch) | |
tree | fa3362b1b7b5d62077ffb6a6b53e2968560e1724 | |
parent | ef74f1b6ead6ee8ab30bf2585a1e5ab3ea329a2c (diff) | |
download | syslinux-5.xx.tar.gz syslinux-5.xx.tar.xz syslinux-5.xx.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>
-rw-r--r-- | core/init.c | 2 |
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); |