[PATCH v2] m68k: Enforce 4-byte alignment on internal locks (BZ #29537)

Florian Weimer fweimer@redhat.com
Tue Sep 20 12:49:09 GMT 2022


* Adhemerval Zanella via Libc-alpha:

> 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).
> ---
>  sysdeps/generic/libc-lock-arch.h              | 25 +++++++++++++++++++
>  sysdeps/nptl/libc-lock.h                      |  8 +++++-
>  sysdeps/nptl/libc-lockP.h                     |  3 ++-
>  sysdeps/unix/sysv/linux/m68k/libc-lock-arch.h | 25 +++++++++++++++++++
>  4 files changed, 59 insertions(+), 2 deletions(-)
>  create mode 100644 sysdeps/generic/libc-lock-arch.h
>  create mode 100644 sysdeps/unix/sysv/linux/m68k/libc-lock-arch.h

This is okay.

Reviewed-by: Florian Weimer <fweimer@redhat.com>

Thanks,
Florian



More information about the Libc-alpha mailing list