Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfvWE-0001dn-79 for qemu-devel@nongnu.org; Sat, 07 Mar 2009 07:20:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfvWC-0001db-BN for qemu-devel@nongnu.org; Sat, 07 Mar 2009 07:20:41 -0500 Received: from [199.232.76.173] (port=41078 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfvWC-0001dY-5U for qemu-devel@nongnu.org; Sat, 07 Mar 2009 07:20:40 -0500 Received: from mail-fx0-f175.google.com ([209.85.220.175]:46795) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfvWB-0006B3-Ss for qemu-devel@nongnu.org; Sat, 07 Mar 2009 07:20:40 -0500 Received: by fxm23 with SMTP id 23so612555fxm.34 for ; Sat, 07 Mar 2009 04:20:37 -0800 (PST) From: Felipe Contreras Date: Sat, 7 Mar 2009 14:20:35 +0200 Message-Id: <1236428435-28631-1-git-send-email-felipe.contreras@gmail.com> Subject: [Qemu-devel] [PATCH] Revert "Use the host exit syscall for exiting (Lauro Ramos Venancio)." Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Felipe Contreras This breaks pthread_join on arm-linux-user. --- linux-user/syscall.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 40eab4e..572fa0a 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -156,7 +156,6 @@ static type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5, \ } -#define __NR_sys_exit __NR_exit #define __NR_sys_uname __NR_uname #define __NR_sys_faccessat __NR_faccessat #define __NR_sys_fchmodat __NR_fchmodat @@ -198,7 +197,6 @@ static int gettid(void) { return -ENOSYS; } #endif -_syscall1(int,sys_exit,int,status) _syscall1(int,sys_uname,struct new_utsname *,buf) #if defined(TARGET_NR_faccessat) && defined(__NR_faccessat) _syscall4(int,sys_faccessat,int,dirfd,const char *,pathname,int,mode,int,flags) @@ -3433,7 +3431,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, #endif gdb_exit(cpu_env, arg1); /* XXX: should free thread stack and CPU env */ - sys_exit(arg1); + _exit(arg1); ret = 0; /* avoid warning */ break; case TARGET_NR_read: -- 1.6.2