From patchwork Mon Oct 27 07:59:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 39590 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5A7C72118A for ; Mon, 27 Oct 2014 08:05:08 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf955557lam.4 for ; Mon, 27 Oct 2014 01:05:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results; bh=k9qWQRYC4oIvxSvfgt89XHK6oAyJhsWCSzuELj+lk5c=; b=JF8V5kgRAaOsdIEjte/k+vXpQasO2pFvqNT7/xht7O4OOlfarahMTk3gk1EmYtr1af FDBc3xmJ+l+FAcuvwG2Hp8SgQVkg3RzxY1nRcdI92WYJDJ/rYNQm1y5nS7KYKFILVU0H DNBJbLneib28UCAyXX9sBR6z6aVVGRoObFqsEwkup/3XmZQlgNgPOCTW2/OJHS2dRBHq MhUuKVG+jvN2xUvMLI7/9wkeHQspHRnskTTSjiy1Zjow82uiO8ox2GCM1LSksyp9fio9 y2Rbc4z9aYdp39AEoi25UfhCDmT2gdyVJLeQX/gFJNNPeZ0aK4Tlp4yAMpl9KbvXP55d y12Q== X-Gm-Message-State: ALoCoQnjAcY41ybuBU5AecJGOXEwLXZODDlpiz+mj+dkUTs0K/hGxaC/XHQ4klHCnsGt+6gmevTJ X-Received: by 10.181.8.194 with SMTP id dm2mr3589508wid.2.1414397107020; Mon, 27 Oct 2014 01:05:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.169 with SMTP id c9ls164334laa.104.gmail; Mon, 27 Oct 2014 01:05:06 -0700 (PDT) X-Received: by 10.112.144.228 with SMTP id sp4mr21300875lbb.58.1414397106358; Mon, 27 Oct 2014 01:05:06 -0700 (PDT) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com. [2a00:1450:4010:c03::230]) by mx.google.com with ESMTPS id bc1si18666884lbc.80.2014.10.27.01.05.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Oct 2014 01:05:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::230 as permitted sender) client-ip=2a00:1450:4010:c03::230; Received: by mail-la0-f48.google.com with SMTP id gi9so5417464lab.35 for ; Mon, 27 Oct 2014 01:05:06 -0700 (PDT) X-Received: by 10.112.14.69 with SMTP id n5mr21662679lbc.34.1414397105766; Mon, 27 Oct 2014 01:05:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp247761lbz; Mon, 27 Oct 2014 01:05:04 -0700 (PDT) X-Received: by 10.68.197.4 with SMTP id iq4mr93224pbc.137.1414397103996; Mon, 27 Oct 2014 01:05:03 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id rg11si9887796pdb.142.2014.10.27.01.05.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Oct 2014 01:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-53822-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 30753 invoked by alias); 27 Oct 2014 08:03:17 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 30709 invoked by uid 89); 27 Oct 2014 08:03:16 -0000 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-f181.google.com X-Received: by 10.43.163.5 with SMTP id mm5mr738720icc.63.1414396993418; Mon, 27 Oct 2014 01:03:13 -0700 (PDT) From: Andrew Pinski To: libc-alpha@sourceware.org Cc: Andrew Pinski Subject: [PATCH 26/29] [AARCH64] Add sigstack.h header for ILP32 reasons. Date: Mon, 27 Oct 2014 00:59:50 -0700 Message-Id: <1414396793-9005-27-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> X-Original-Sender: apinski@cavium.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::230 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 ILP32 uses the same structure layout for sigaltstack as LP64 so we need a special header file. * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file. --- sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h | 71 +++++++++++++++++++++++ 1 files changed, 71 insertions(+), 0 deletions(-) create mode 100644 sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h b/sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h new file mode 100644 index 0000000..2dd8f6b --- /dev/null +++ b/sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h @@ -0,0 +1,71 @@ +/* sigstack, sigaltstack definitions. + Copyright (C) 1998, 1999 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#ifndef _SIGNAL_H +# error "Never include this file directly. Use instead" +#endif + + +/* Structure describing a signal stack (obsolete). */ +struct sigstack + { + void *ss_sp; /* Signal stack pointer. */ + int ss_onstack; /* Nonzero if executing on this stack. */ + }; + + +/* Possible values for `ss_flags.'. */ +enum +{ + SS_ONSTACK = 1, +#define SS_ONSTACK SS_ONSTACK + SS_DISABLE +#define SS_DISABLE SS_DISABLE +}; + +/* Minimum stack size for a signal handler. */ +#define MINSIGSTKSZ 2048 + +/* System default stack size. */ +#define SIGSTKSZ 8192 + + +/* Alternate, preferred interface. + This structure matches the same size and layout + for both ILP32 and LP64. */ +typedef struct sigaltstack + { +#if defined(__ILP32__) && defined(__AARCH64EB__) + int __pad_ss_sp; +#endif + void *ss_sp; +#if defined(__ILP32__) && !defined(__AARCH64EB__) + int __pad_ss_sp; +#endif + int ss_flags; +#if defined(__ILP32__) + int __pad_after_ss_flags; +#endif +#if defined(__ILP32__) && defined(__AARCH64EB__) + int __pad_ss_size; +#endif + size_t ss_size; +#if defined(__ILP32__) && !defined(__AARCH64EB__) + int __pad_ss_size; +#endif + } stack_t;