aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/zynq-fpga.c
diff options
context:
space:
mode:
authorHuacai Chen <[email protected]>2024-10-23 14:15:30 +0000
committerHuacai Chen <[email protected]>2024-10-23 14:15:30 +0000
commit3c252263be801f937f56b4bcd8e8e2b5307c1ce5 (patch)
treeb7a4492bf7e9565d0749e7d3384abd392604be32 /drivers/fpga/zynq-fpga.c
parentLoongArch: Set initial pte entry with PAGE_GLOBAL for kernel space (diff)
downloadkernel-3c252263be801f937f56b4bcd8e8e2b5307c1ce5.tar.gz
kernel-3c252263be801f937f56b4bcd8e8e2b5307c1ce5.zip
LoongArch: Make KASAN usable for variable cpu_vabits
Currently, KASAN on LoongArch assume the CPU VA bits is 48, which is true for Loongson-3 series, but not for Loongson-2 series (only 40 or lower), this patch fix that issue and make KASAN usable for variable cpu_vabits. Solution is very simple: Just define XRANGE_SHADOW_SHIFT which means valid address length from VA_BITS to min(cpu_vabits, VA_BITS). Cc: [email protected] Signed-off-by: Kanglong Wang <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions