bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PA: fix clone syscall


From: Matthew Wilcox
Subject: PA: fix clone syscall
Date: Fri, 20 Apr 2001 15:10:06 -0600

2001-04-20  John S. Marvin <address@hidden>
 
        * sysdeps/unix/sysv/linux/hppa/clone.S: Fix clone system call
        entry point stub.

diff -urNx CVS glibc-2.2.1/sysdeps/unix/sysv/linux/hppa/clone.S 
glibc/sysdeps/unix/sysv/linux/hppa/clone.S
--- glibc-2.2.1/sysdeps/unix/sysv/linux/hppa/clone.S    Thu Nov 16 13:00:55 2000
+++ glibc/sysdeps/unix/sysv/linux/hppa/clone.S  Thu Mar 15 10:28:43 2001
@@ -33,18 +33,18 @@
        /* FIXME: I have no idea how profiling works on hppa. */
 
        /* Sanity check arguments.  */
-       comib,<> 0,%arg0,.Lerror        /* no NULL function pointers */
-       ldi     EINVAL,%ret0
-       comib,<> 0,%arg1,.Lerror        /* no NULL stack pointers */
+       comib,=  0,%arg0,.Lerror        /* no NULL function pointers */
+       ldi     -EINVAL,%ret0
+       comib,=  0,%arg1,.Lerror        /* no NULL stack pointers */
        nop
 
        /* Save the fn ptr and arg on the new stack.  */
-       stwm    %arg3,64(%arg1)
+       stwm    %arg0,64(%arg1)
        stw     %arg3,-60(%arg1)
 
        /* Do the system call */
        copy    %arg2,%arg0
-       ble     0x100(%sr7,%r0)
+       ble     0x100(%sr2,%r0)
        ldi     __NR_clone,%r20
 
        ldi     -4096,%r1
@@ -60,12 +60,12 @@
        /* Something bad happened -- no child created */
 .Lerror:
        b       __syscall_error
-       nop
+       sub     %r0,%ret0,%arg0
 
 thread_start:
        /* Load up the arguments.  */
        ldw     -60(%sp),%arg0
-       ldwm    -64(%sp),%r22
+       ldw     -64(%sp),%r22
 
        /* Call the user's function */
        bl      $$dyncall,%r31



reply via email to

[Prev in Thread] Current Thread [Next in Thread]