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: 3425 Received: (qmail 30753 invoked by alias); 27 Oct 2014 08:03:17 -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 30709 invoked by uid 89); 27 Oct 2014 08:03:16 -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-f181.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=k9qWQRYC4oIvxSvfgt89XHK6oAyJhsWCSzuELj+lk5c=; b=V5raflFdZSviKvCiolDH3NzJu+Stjje33T4y38QEv+4T4jQwb0Krai4bZpbIVTdKvv gBvwrgloYx4Hy2WuuSF3eL0SHFPxZJhLaJvk/PPTHpWxxaM9fNxyYewOqBnnw657HbIN oNKNNRxVwFhFqkJT5d8HDNQvM4fK1kghrNulaw5V9LBjX23JDBDD8KoO0CMVGJ+D/Mec sXD7C8asVn3iDtzci8v7dlkC18agT07jwx5zMHwmQSwSpmvCMTl8mu07ryxcjkHxMvoc UznT5XKP77tkXGirE5EdYOO4GmALgpoVu7fjC6yRJnNy36pkFnRg333d5rCjwKCCi/xS 4YoQ== X-Gm-Message-State: ALoCoQmMCoKqcqsyCLuEgShsVBh411FFRpVnxcpj4M4z7uCAv1FayTTlgaSb1/XXAnVp8pHYoO1f 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> 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;