com32r: properly pass the command line string to __parse_argv
authorH. Peter Anvin <hpa@zytor.com>
Mon, 25 May 2009 04:10:32 +0000 (21:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 25 May 2009 04:10:32 +0000 (21:10 -0700)
Fix incorrect passing of the command line string to __parse_argv; what
was an leal should have been movl.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/lib/sys/entry.S

index a189346..a3a1eaa 100644 (file)
@@ -85,7 +85,7 @@ _start:
                rep ; movsl
 
                /* Parse the command line (assumes REGPARM) */
-               leal __com32+4@GOTOFF(%ebx),%edx        # Command line
+               movl __com32+4@GOTOFF(%ebx),%edx        # Command line
                pushl %edx                              # Make space for argv
                movl %esp,%eax
                call __parse_argv