svn commit: trunk/uClibc/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh

lethal at uclibc.org lethal at uclibc.org
Wed Sep 24 10:49:32 UTC 2008


Author: lethal
Date: 2008-09-24 03:49:32 -0700 (Wed, 24 Sep 2008)
New Revision: 23460

Log:
Use __SH_SYSCALL_TRAP_BASE for pthread vfork trap, as it will
change depending on ABI.



Modified:
   trunk/uClibc/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/vfork.S


Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/vfork.S
===================================================================
--- trunk/uClibc/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/vfork.S	2008-09-24 09:12:06 UTC (rev 23459)
+++ trunk/uClibc/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sh/vfork.S	2008-09-24 10:49:32 UTC (rev 23460)
@@ -19,6 +19,7 @@
 #include <sysdep-cancel.h>
 #define _ERRNO_H	1
 #include <bits/errno.h>
+#include <sys/syscall.h>
 
 /* Clone the calling process, but without copying the whole address space.
    The calling process is suspended until the new process exits or is
@@ -39,7 +40,7 @@
 	bf	.Lhidden_fork
 
 	mov.w	.L1, r3
-	trapa	#0x10
+	trapa	#__SH_SYSCALL_TRAP_BASE
 	mov     r0, r1
 	mov	#-12, r2
 	shad	r2, r1




More information about the uClibc-cvs mailing list