mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
linux: set CONFIG_ARCH_STRICT_ALIGN=n
set CONFIG_ARCH_STRICT_ALIGN=n to enable CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS. this allows loading BPF program with unaligned memory access generated by clang, see [0]. this change might cause BPF program fail to load in loongarch CPU models that require strict aligned memory access. [0]: https://github.com/vincentmli/BPFire/issues/69 Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -342,7 +342,7 @@ CONFIG_NODES_SHIFT=6
|
||||
CONFIG_ARCH_FORCE_MAX_ORDER=11
|
||||
# CONFIG_ARCH_IOREMAP is not set
|
||||
# CONFIG_ARCH_WRITECOMBINE is not set
|
||||
CONFIG_ARCH_STRICT_ALIGN=y
|
||||
CONFIG_ARCH_STRICT_ALIGN=n
|
||||
CONFIG_CPU_HAS_FPU=y
|
||||
CONFIG_CPU_HAS_LSX=y
|
||||
CONFIG_CPU_HAS_LASX=y
|
||||
|
||||
Reference in New Issue
Block a user