m68k: Enforce 4-byte alignment on internal locks (BZ #29537)
commitaeb4d2e9815d459e2640a31f5abb8ef803830107
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 30 Aug 2022 13:33:15 +0000 (30 10:33 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 20 Sep 2022 13:56:54 +0000 (20 10:56 -0300)
tree54c8b49128a1c5a81bc9f3a04b60582266627cfc
parentc75d20b5b27b0a60f0678236f51a4d3b0b058c00
m68k: Enforce 4-byte alignment on internal locks (BZ #29537)

A new internal definition, __LIBC_LOCK_ALIGNMENT, is used to force
the 4-byte alignment only for m68k, other architecture keep the
natural alignment of the type used internally (and hppa does not
require 16-byte alignment for kernel-assisted CAS).

Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/generic/libc-lock-arch.h [new file with mode: 0644]
sysdeps/nptl/libc-lock.h
sysdeps/nptl/libc-lockP.h
sysdeps/unix/sysv/linux/m68k/libc-lock-arch.h [new file with mode: 0644]