summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Semin <fancer.lancer@gmail.com>2025-10-23 17:30:14 +0300
committerSerge Semin <fancer.lancer@gmail.com>2026-08-06 01:51:52 +0300
commit955b63d91858285a8b691017087587abbbef5441 (patch)
tree9f1c46524be7d30586b6d7f9887a2ff9f7012fbc
parent263c75414970e555d5569a4d8a13f8235e35419b (diff)
downloadlinux-955b63d91858285a8b691017087587abbbef5441.tar.gz
linux-955b63d91858285a8b691017087587abbbef5441.zip
mips: spaces: Convert CAC_BASE to being pre-defined
The macro defines the base address of the kernel directly mapped cacheable region. It normally matches to the (C)KSEG0/XKPHYS regions. But EVA (Enhanced Virtual Addressing) feature changes that since KSEG0 is no longer a static region. Basically the EVA mapping can be any but normally it just implies the KSEG0 extending downward. In order to have that reflected in the CAC_BASE macro let's make it optionally pre-defined by the platform-specific space.h header-file on MIPS32 in the same way as it can be done on MIPS64 CPUs. Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
-rw-r--r--arch/mips/include/asm/mach-generic/spaces.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-generic/spaces.h b/arch/mips/include/asm/mach-generic/spaces.h
index 6332b6cbf7eef..cb79b57579343 100644
--- a/arch/mips/include/asm/mach-generic/spaces.h
+++ b/arch/mips/include/asm/mach-generic/spaces.h
@@ -30,7 +30,9 @@
#endif /* __ASSEMBLER__ */
#ifdef CONFIG_32BIT
+#ifndef CAC_BASE
#define CAC_BASE _AC(0x80000000, UL)
+#endif
#ifndef IO_BASE
#define IO_BASE _AC(0xa0000000, UL)
#endif