mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
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: Binbin Zhou <zhoubinbin@loongson.cn> Suggested-by: Xi Ruoyao <xry111@xry111.site> Suggested-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
18 lines
482 B
C
18 lines
482 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* LoongArch specific ACPICA environments and implementation
|
|
*
|
|
* Author: Jianmin Lv <lvjianmin@loongson.cn>
|
|
* Huacai Chen <chenhuacai@loongson.cn>
|
|
* Copyright (C) 2020-2022 Loongson Technology Corporation Limited
|
|
*/
|
|
|
|
#ifndef _ASM_LOONGARCH_ACENV_H
|
|
#define _ASM_LOONGARCH_ACENV_H
|
|
|
|
#ifdef CONFIG_ARCH_STRICT_ALIGN
|
|
#define ACPI_MISALIGNMENT_NOT_SUPPORTED
|
|
#endif /* CONFIG_ARCH_STRICT_ALIGN */
|
|
|
|
#endif /* _ASM_LOONGARCH_ACENV_H */
|