From 16b6f79093cf45ede406e60c2bca7c800c5496b6 Mon Sep 17 00:00:00 2001 From: hpa Date: Fri, 3 Dec 2004 23:29:12 +0000 Subject: [PATCH] Make sure to save/restore the file length --- com32.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/com32.inc b/com32.inc index d0bfb3e..8f0ea58 100644 --- a/com32.inc +++ b/com32.inc @@ -42,6 +42,8 @@ com32_rmidt: is_com32_image: push si ; Save file handle + push dx ; File length held in DX:AX + push ax call make_plain_cmdline ; Copy the command line into the low cmdline buffer @@ -58,9 +60,7 @@ is_com32_image: call comboot_setup_api ; Set up the COMBOOT-style API mov edi,pm_entry ; Load address - xchg eax,edx ; Gotta fix this insanity... - shl eax,16 - mov ax,dx + pop eax ; File length pop si ; File handle call load_high call crlf -- 2.7.4