From bed21540a0481b8560d8729481e69b379edda31e Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 10 Jun 2008 15:40:11 -0700 Subject: [PATCH] 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! --- core/ldlinux.asm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.7.4