diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2010-06-29 15:17:11 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-06-29 15:19:11 -0700 |
commit | 70d25e3364070f24c89c4120f8bd609f7c2ee05d (patch) | |
tree | 936a47e15c23b442a2fd41071f6891f1279b697a /core/isolinux.asm | |
parent | f17aca467b77365022da12c9da2c115669eaf234 (diff) | |
download | syslinux-70d25e3364070f24c89c4120f8bd609f7c2ee05d.tar.gz |
isolinux: don't clobber DX (DL!) on startup
DL contains the initial drive number, don't clobber it!
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'core/isolinux.asm')
-rw-r--r-- | core/isolinux.asm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/isolinux.asm b/core/isolinux.asm index 656bbfbf..1ef68d8c 100644 --- a/core/isolinux.asm +++ b/core/isolinux.asm @@ -255,15 +255,15 @@ _start1: _start_common: mov [cs:InitStack],sp ; Save initial stack pointer mov [cs:InitStack+2],ss - xor dx,dx - mov ss,dx + xor cx,cx + mov ss,cx mov sp,StackBuf ; Set up stack push es ; Save initial ES:DI -> $PnP pointer push di - mov ds,dx - mov es,dx - mov fs,dx - mov gs,dx + mov ds,cx + mov es,cx + mov fs,cx + mov gs,cx sti cld |