[v2] Set SHMLBA to page size on hppa (BZ locale/19838)
Commit Message
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.
@@ -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;