From patchwork Fri May 9 23:01:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 868 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx22.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id C36DB360076 for ; Fri, 9 May 2014 16:01:11 -0700 (PDT) Received: by homiemail-mx22.g.dreamhost.com (Postfix, from userid 14307373) id 5C8015075A37; Fri, 9 May 2014 16:01:11 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx22.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx22.g.dreamhost.com (Postfix) with ESMTPS id 09D064F7EC40 for ; Fri, 9 May 2014 16:01:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; q= dns; s=default; b=uVHvn3RW8w60Q20EFBdPdIxb7WHqKBBk15yNDoGS5+R1iT hO6oSTPK3iqOcb6hO6eh9QS9rwmuFS3hI3F7y5lpqyh2UKSSwG0UHMptfdu8DzAe JOY7EmIvHkSGlk1/x1etSTJPf95BeOHoMwjtYEZV3tDfXf+pxnjs7FDYfSXXQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; s= default; bh=vTx5tlY4lerszVncuuSuHDn5UmU=; b=Be6Lft+LfXSXkSETBd/G XyCXR5KyRExY5rvP5XZSsBMWVB5yogyAgSyGe1hGS038OqR5FZPTzcT+KqH6wxsw NNrhFQAcmJ3qcqM9MxRShfIzHI/7nu7KE86zvQ8uPyE8MVHqPbcBm6jWfU0FrN23 gMOsIngLdsrkvYodWBNXazY= Received: (qmail 18324 invoked by alias); 9 May 2014 23:01:08 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 18315 invoked by uid 89); 9 May 2014 23:01:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [PATCH 1/3 roland/nptl] Consolidate NPTL vs non clone.S for ARM. Message-Id: <20140509230105.080972C39FE@topped-with-meat.com> Date: Fri, 9 May 2014 16:01:04 -0700 (PDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=J405smXS c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=jbVK4oucufcA:10 a=Z6MIti7PxpgA:10 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=dMOHTmRuURnET5a96toA:9 a=CjuIK1q_8ugA:10 X-DH-Original-To: glibc@patchwork.siddhesh.in * sysdeps/unix/sysv/linux/arm/clone.S: Include . Deconditionalize the code that was previously under [RESET_PID]. * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed. --- a/sysdeps/unix/sysv/linux/arm/clone.S +++ b/sysdeps/unix/sysv/linux/arm/clone.S @@ -20,6 +20,7 @@ and invokes a function in the right context after its all over. */ #include +#include #define _ERRNO_H 1 #include @@ -45,9 +46,7 @@ ENTRY(__clone) @ do the system call @ get flags mov r0, r2 -#ifdef RESET_PID mov ip, r2 -#endif @ new sp is already in r1 push {r4, r7} cfi_adjust_cfa_offset (8) @@ -71,7 +70,6 @@ PSEUDO_END (__clone) 1: .fnstart .cantunwind -#ifdef RESET_PID tst ip, #CLONE_THREAD bne 3f GET_TLS (lr) @@ -85,7 +83,6 @@ PSEUDO_END (__clone) str r0, NEGOFF_OFF1 (r1, TID_OFFSET) str r0, NEGOFF_OFF2 (r1, PID_OFFSET, TID_OFFSET) 3: -#endif @ pick the function arg and call address off the stack and execute ldr r0, [sp, #4] ldr ip, [sp], #8 --- a/sysdeps/unix/sysv/linux/arm/nptl/clone.S +++ /dev/null @@ -1,3 +0,0 @@ -#define RESET_PID -#include -#include "../clone.S"