Skip to content

Commit f500309

Browse files
seehearfeelchenhuacai
authored andcommitted
LoongArch: Update help info of ARCH_STRICT_ALIGN
Loongson-3A6000 and 3C6000 CPUs also support unaligned memory access, so the current description is out of date to some extent. Actually, all of Loongson-3 series processors based on LoongArch support unaligned memory access, this hardware capability is indicated by the bit 20 (UAL) of CPUCFG1 register, update the help info to reflect the reality. Cc: [email protected] Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent 74f8295 commit f500309

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

arch/loongarch/Kconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,14 @@ config ARCH_STRICT_ALIGN
567567
-mstrict-align build parameter to prevent unaligned accesses.
568568

569569
CPUs with h/w unaligned access support:
570-
Loongson-2K2000/2K3000/3A5000/3C5000/3D5000.
570+
Loongson-2K2000/2K3000 and all of Loongson-3 series processors
571+
based on LoongArch.
571572

572573
CPUs without h/w unaligned access support:
573-
Loongson-2K500/2K1000.
574+
Loongson-2K0300/2K0500/2K1000.
575+
576+
If you want to make sure whether to support unaligned memory access
577+
on your hardware, please read the bit 20 (UAL) of CPUCFG1 register.
574578

575579
This option is enabled by default to make the kernel be able to run
576580
on all LoongArch systems. But you can disable it manually if you want

0 commit comments

Comments
 (0)