mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
a35707c3d8
Some current cpus based on T-Head cores implement memory-types way different than described in the svpbmt spec even going so far as using PTE bits marked as reserved. Add the T-Head vendor-id and necessary errata code to replace the affected instructions. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Tested-by: Samuel Holland <samuel@sholland.org> Link: https://lore.kernel.org/r/20220511192921.2223629-13-heiko@sntech.de Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
11 lines
221 B
Makefile
11 lines
221 B
Makefile
ifdef CONFIG_RISCV_ALTERNATIVE_EARLY
|
|
CFLAGS_errata.o := -mcmodel=medany
|
|
ifdef CONFIG_FTRACE
|
|
CFLAGS_REMOVE_errata.o = $(CC_FLAGS_FTRACE)
|
|
endif
|
|
ifdef CONFIG_KASAN
|
|
KASAN_SANITIZE_errata.o := n
|
|
endif
|
|
endif
|
|
|
|
obj-y += errata.o
|