aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-05-22 17:43:18 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-05-22 17:43:18 -0700
commit9e08dc7e6528252a1f81b1c380a10a32f46d84e6 (patch)
treed737e8ae8fc7481a772ef1c0c3efe9c3716957f4
parentfff762e1c19c4b684fa4150893196faa2d72743c (diff)
downloadsyslinux-elf-9e08dc7e6528252a1f81b1c380a10a32f46d84e6.tar.gz
syslinux-elf-9e08dc7e6528252a1f81b1c380a10a32f46d84e6.tar.xz
syslinux-elf-9e08dc7e6528252a1f81b1c380a10a32f46d84e6.zip
We need to bloody well set KernelVersion before using it...syslinux-3.50-pre12
-rw-r--r--runkernel.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/runkernel.inc b/runkernel.inc
index d11ecb73..1ba620e6 100644
--- a/runkernel.inc
+++ b/runkernel.inc
@@ -210,6 +210,7 @@ prepare_header:
cmp dword [es:su_header],HEADER_ID ; New setup code ID
jne old_kernel ; Old kernel, load low
mov ax,[es:su_version]
+ mov [KernelVersion],ax
cmp ax,0200h ; Setup code version 2.0
jb old_kernel ; Old kernel, load low
cmp ax,0201h ; Version 2.01+?