summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-10 15:40:11 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-10 15:40:11 -0700
commitbed21540a0481b8560d8729481e69b379edda31e (patch)
tree687f4df76df8e1d10088605c66d9b8bc21cf4859
parentc5e8fc016d35ec020e9b3e56272c6cc388400839 (diff)
downloadsyslinux-bed21540a0481b8560d8729481e69b379edda31e.tar.gz
ldlinux: search_dos_dir returns attributes in DLsyslinux-3.70-pre15
search_dos_dir returns attributes in DL, so we shouldn't push/pop DX around this function!
-rw-r--r--core/ldlinux.asm7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/ldlinux.asm b/core/ldlinux.asm
index 54dc8fac..5318c477 100644
--- a/core/ldlinux.asm
+++ b/core/ldlinux.asm
@@ -956,9 +956,11 @@ allocate_file:
; ZF clear
; SI = file pointer
; EAX = file length (MAY BE ZERO!)
-; DL = file attributes
+; DL = file attribute
+; DH = clobbered
; If unsuccessful
; ZF set
+; EAX, SI, DX clobbered
;
search_dos_dir:
@@ -967,7 +969,6 @@ search_dos_dir:
jnz .alloc_failure
push cx
- push dx
push gs
push es
push ds
@@ -1125,7 +1126,6 @@ search_dos_dir:
.failure:
pop es
pop gs
- pop dx
pop cx
.alloc_failure:
pop bx
@@ -1153,7 +1153,6 @@ search_dos_dir:
pop es
pop gs
- pop dx
pop cx
pop bx
ret