aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-04-03 16:50:27 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2009-04-03 16:50:27 -0700
commit69cbf4d6cc3469650e6d0d581220251ca45c36f4 (patch)
treef1f5a80510481d23fe74d6f1ada661730e5c74d4
parentddad35c72c939a87ee840cde7522cd7ef907b6b5 (diff)
downloadsyslinux.git-69cbf4d6cc3469650e6d0d581220251ca45c36f4.tar.gz
syslinux.git-69cbf4d6cc3469650e6d0d581220251ca45c36f4.tar.xz
syslinux.git-69cbf4d6cc3469650e6d0d581220251ca45c36f4.zip
linux.c32: don't relocate the real-mode code *above* 0x90000
Do not relocate the real-mode code above address 0x90000... that would not be prudent. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--com32/lib/syslinux/load_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/syslinux/load_linux.c b/com32/lib/syslinux/load_linux.c
index 4f583cd7..daea1266 100644
--- a/com32/lib/syslinux/load_linux.c
+++ b/com32/lib/syslinux/load_linux.c
@@ -318,7 +318,7 @@ int syslinux_boot_linux(void *kernel_buf, size_t kernel_size,
end = 640*1024;
start = ALIGN_UP(start, 16);
- if (start >= end)
+ if (start > 0x90000 || start >= end)
continue;
if (end - start >= cmdline_offset+cmdline_size) {