From patchwork Mon Apr 17 12:10:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 751293 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 ozlabs.org (Postfix) with ESMTPS id 3w66Y46g5Pz9s0Z for ; Mon, 17 Apr 2017 22:10:48 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="AhLU+bRv"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; q=dns; s=default; b= Ip/OgiZngSmQUSUqMTv5FvRgd2sltGcwFNf01dyfXgUhTN9pLRC4y7BJ/ycwiU3Z 2AgQxg7soWL7YT4Z6sGvNEgfbAghbPLdDUOOOFzfSJ8lQWTLPvdnEwgyPkQNqK3f Qyv/oDOpes2M735aB2flq2iHAKDIwa06VaKnYiYjkYk= 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:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; s=default; bh=h3S jYTsI0pFO6cPXQl7oMGD7ow4=; b=AhLU+bRvnqXgriGSP7oy1mlN5Ml9AzADYHl LC1X+dIu0ruvxT7SeFjSpoRXqZzXCP834LypJev5r3QbjuGSOVHwB++2guLaQ6l/ ChuJYfw+4lX6DBqGJLiKTPDewixkgDMF/4s+m/hUETtTlA77kXZX+PLWvf12D1FY izLfHhSo= Received: (qmail 38818 invoked by alias); 17 Apr 2017 12:10:37 -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 38726 invoked by uid 89); 17 Apr 2017 12:10:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy= X-HELO: mtlfep02.bell.net Subject: [PATCH v2] Set SHMLBA to page size on hppa (BZ locale/19838) Mime-Version: 1.0 (Apple Message framework v1085) From: John David Anglin In-Reply-To: <87inm4nlqf.fsf@linux-m68k.org> Date: Mon, 17 Apr 2017 08:10:27 -0400 Cc: GNU C Library , Carlos O'Donell , Mike Frysinger , Aurelien Jarno , Helge Deller Message-Id: <00FC70F9-98DD-460A-BDE2-B9F302459CAA@bell.net> References: <87r30snmw3.fsf@linux-m68k.org> <87inm4nlqf.fsf@linux-m68k.org> To: Andreas Schwab On 2017-04-16, at 4:25 PM, Andreas Schwab wrote: > On Apr 16 2017, John David Anglin wrote: > >> On 2017-04-16, at 4:00 PM, Andreas Schwab wrote: >> >>> On Apr 16 2017, John David Anglin wrote: >>> >>>> +#define SHMLBA (__getpagesize ()) >>> >>> SHMLBA must be a constant. >> >> >> Are you sure? > > http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_shm.h.html#tag_13_59_03 This version sets SHMLBA to the constant 0x1000. Helge indicated that the page size will not change. Dave --- John David Anglin dave.anglin@bell.net 2017-04-17 John David Anglin [BZ locale/19838] * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHMLBA): Set to page size. diff --git a/sysdeps/unix/sysv/linux/hppa/bits/shm.h b/sysdeps/unix/sysv/linux/hppa/bits/shm.h index 794f0ab2da..495dae8afc 100644 --- a/sysdeps/unix/sysv/linux/hppa/bits/shm.h +++ b/sysdeps/unix/sysv/linux/hppa/bits/shm.h @@ -37,7 +37,7 @@ #define SHM_UNLOCK 12 /* unlock segment (root only) */ /* Segment low boundary address multiple. */ -#define SHMLBA 0x00400000 /* address needs to be 4 Mb aligned */ +#define SHMLBA 0x1000 /* Type to count number of attaches. */ typedef unsigned long int shmatt_t;