From: H. Peter Anvin Date: Tue, 10 Jun 2008 22:40:11 +0000 (-0700) Subject: ldlinux: search_dos_dir returns attributes in DL X-Git-Tag: syslinux-3.70-pre15^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bed21540a0481b8560d8729481e69b379edda31e;p=platform%2Fupstream%2Fsyslinux.git ldlinux: search_dos_dir returns attributes in DL search_dos_dir returns attributes in DL, so we shouldn't push/pop DX around this function! --- diff --git a/core/ldlinux.asm b/core/ldlinux.asm index 54dc8fa..5318c47 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