LoongArch: Fix inconsistency in SHMLBA macro values between glibc and kernel
commit3eed5f3a1ee356969afb403a1cf18d06f8d2d98a
authorcaiyinyu <caiyinyu@loongson.cn>
Thu, 25 May 2023 09:01:11 +0000 (25 17:01 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Tue, 30 May 2023 06:13:06 +0000 (30 14:13 +0800)
tree889b9b377ad5953d37550d15dcfcd05a7551bf33
parent630da022cb07d67ab53b4e9335352e44e9b7c5e2
LoongArch: Fix inconsistency in SHMLBA macro values between glibc and kernel

The LoongArch glibc was using the value of the SHMLBA macro from common code,
which is __getpagesize() (16k), but this was inconsistent with the value of
the SHMLBA macro in the kernel, which is SZ_64K (64k). This caused several
shmat-related tests in LTP (Linux Test Project) to fail. This commit fixes
the issue by ensuring that the glibc's SHMLBA macro value matches the value
used in the kernel like other architectures.
sysdeps/unix/sysv/linux/loongarch/bits/shmlba.h [new file with mode: 0644]