diff mbox

[v2] Set SHMLBA to page size on hppa (BZ locale/19838)

Message ID 00FC70F9-98DD-460A-BDE2-B9F302459CAA@bell.net
State New
Headers show

Commit Message

John David Anglin April 17, 2017, 12:10 p.m. UTC
On 2017-04-16, at 4:25 PM, Andreas Schwab wrote:

> On Apr 16 2017, John David Anglin <dave.anglin@bell.net> wrote:
> 
>> On 2017-04-16, at 4:00 PM, Andreas Schwab wrote:
>> 
>>> On Apr 16 2017, John David Anglin <dave.anglin@bell.net> 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  <danglin@gcc.gnu.org>

	[BZ locale/19838]
	* sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHMLBA): Set to page size.
diff mbox

Patch

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;