Commit a9d13433 authored by Huacai Chen's avatar Huacai Chen
Browse files

LoongArch: Align ACPI structures if ARCH_STRICT_ALIGN enabled



ARCH_STRICT_ALIGN is used for hardware without UAL, now it only control
the -mstrict-align flag. However, ACPI structures are packed by default
so will cause unaligned accesses.

To avoid this, define ACPI_MISALIGNMENT_NOT_SUPPORTED in asm/acenv.h to
align ACPI structures if ARCH_STRICT_ALIGN enabled.

Cc: stable@vger.kernel.org
Reported-by: default avatarBinbin Zhou <zhoubinbin@loongson.cn>
Suggested-by: default avatarXi Ruoyao <xry111@xry111.site>
Suggested-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent f5003098
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment