From patchwork Mon Oct 27 07:59:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 3410 Received: (qmail 15876 invoked by alias); 27 Oct 2014 08:00:15 -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 15433 invoked by uid 89); 27 Oct 2014 08:00:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-ig0-f171.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=a8O9+jWxw9S0Zc1YykYbJ1/DKCv82HZUo5z2xcnRxAo=; b=RuIyqSAs4l2DekbZ3XwhfSPdxLjdOU0moVkbVCaEeib3ozWxD9xIrCRJQ0WjtMhMdL aiYDE+KmX3LgDgcQMnomWsUzhNeC7L4aNuek4XxNTHnYY0UFG46fpvpElpJTVt/LMshb oB5zmtkpBzJFRDnm+2jXALBUR2uhY659NnYy68TNxBEmv7pOz7CyGKQewtV+23xtD+IA NCBO7imGjxgblC2xxzBWqKcM5o0esmJuOipmoSFYkFRqbPcgHYsiyKc9q9PSShILgq/k 8LvK0a3NBwtovYqOcFzvLu1EMzvsI+75SEZI0YQ3f5N9v6p08BVUCgmMR8UKjcR2chB8 8S/Q== X-Gm-Message-State: ALoCoQlcFrlIp5msdXFE48slZWCsrYdj8vrt5/sVxdVdlXWFuO8GbUuoQc7zykVmG6NXCWpd2DcA X-Received: by 10.107.152.149 with SMTP id a143mr21074383ioe.39.1414396799613; Mon, 27 Oct 2014 00:59:59 -0700 (PDT) From: Andrew Pinski To: libc-alpha@sourceware.org Cc: Andrew Pinski Subject: [PATCH 15/29] [AARCH64] Use PTR_REG in getcontext.S. Date: Mon, 27 Oct 2014 00:59:39 -0700 Message-Id: <1414396793-9005-16-git-send-email-apinski@cavium.com> In-Reply-To: <1414396793-9005-1-git-send-email-apinski@cavium.com> References: <1414396793-9005-1-git-send-email-apinski@cavium.com> Just like the other patches, this patch allows for getcontext.S to be used between ILP32 and LP64. * sysdeps/unix/sysv/linux/aarch64/getcontext.S: Use PTR_REG when doing an add so wrapping of the pointer is correct for ILP32. --- sysdeps/unix/sysv/linux/aarch64/getcontext.S | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sysdeps/unix/sysv/linux/aarch64/getcontext.S b/sysdeps/unix/sysv/linux/aarch64/getcontext.S index 70b2e32..4507040 100644 --- a/sysdeps/unix/sysv/linux/aarch64/getcontext.S +++ b/sysdeps/unix/sysv/linux/aarch64/getcontext.S @@ -90,7 +90,7 @@ ENTRY(__getcontext) /* Grab the signal mask */ /* rt_sigprocmask (SIG_BLOCK, NULL, &ucp->uc_sigmask, _NSIG8) */ - add x2, x0, #UCONTEXT_SIGMASK + add PTR_REG (2), PTR_REG (0), #UCONTEXT_SIGMASK mov x0, SIG_BLOCK mov x1, 0 mov x3, _NSIG8