From: H. Peter Anvin Date: Tue, 14 Aug 2007 22:19:32 +0000 (-0700) Subject: com32: fix __farcall() X-Git-Tag: syslinux-3.52-pre6~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9298132fc4d36498b5ee4ffb574e3b2cdc9d1358;p=platform%2Fupstream%2Fsyslinux.git com32: fix __farcall() The address for the farcall thunk was inadvertently clobbered in entry.S. --- diff --git a/com32/lib/sys/entry.S b/com32/lib/sys/entry.S index 4df2f06..be42c8b 100644 --- a/com32/lib/sys/entry.S +++ b/com32/lib/sys/entry.S @@ -49,12 +49,13 @@ _start: # Copy COM32 invocation parameters leal 4(%esp),%esi # Argument list movl $__com32,%edi - movl $6,%ecx + movl $5,%ecx movl %esp,-4(%edi) # Save the initial stack ptr cmpl (%esi),%ecx jbe 1f movl (%esi),%ecx -1: rep ; movsl +1: inc %ecx # Copy the argument count, too + rep ; movsl # Parse the command line (assumes REGPARM) movl __com32+4,%edx # Command line