[PATCH v2 5/6] arch: move PHYS_ADDR_T_64BIT definition to arch/Kconfig
Ahmad Fatoum
a.fatoum at pengutronix.de
Thu Mar 13 00:54:15 PDT 2025
Currently, every architecture with 64-bit support defines its own
PHYS_ADDR_T_64BIT symbol, except for x86.
Sync with what's done for ARCH_DMA_ADDR_T_64BIT and move
PHYS_ADDR_T_64BIT into arch/Kconfig as well.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
v1 -> v2:
- no change
---
arch/Kconfig | 4 ++++
arch/arm/cpu/Kconfig | 3 ---
arch/kvx/Kconfig | 3 ---
arch/mips/Kconfig | 3 ---
arch/riscv/Kconfig | 3 ---
arch/sandbox/Kconfig | 3 ---
6 files changed, 4 insertions(+), 15 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index b1200184678f..dc5d1e454df5 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -89,6 +89,10 @@ config ARCH_HAS_SJLJ
help
Architecture has support implemented for setjmp()/longjmp()/initjmp()
+
+config PHYS_ADDR_T_64BIT
+ bool
+
config ARCH_DMA_ADDR_T_64BIT
bool
diff --git a/arch/arm/cpu/Kconfig b/arch/arm/cpu/Kconfig
index 84fe770b6da8..e61bcadc8c35 100644
--- a/arch/arm/cpu/Kconfig
+++ b/arch/arm/cpu/Kconfig
@@ -2,9 +2,6 @@
comment "Processor Type"
-config PHYS_ADDR_T_64BIT
- bool
-
config CPU_32
bool
select HAS_MODULES
diff --git a/arch/kvx/Kconfig b/arch/kvx/Kconfig
index 5f325ca28358..9b733cd79201 100644
--- a/arch/kvx/Kconfig
+++ b/arch/kvx/Kconfig
@@ -23,9 +23,6 @@ config KVX
select RESET_SOURCE
default y
-config PHYS_ADDR_T_64BIT
- bool
-
config 64BIT
bool
select ARCH_DMA_ADDR_T_64BIT
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 769949a91085..43c493978c8f 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -36,9 +36,6 @@ config GENERIC_LINKER_SCRIPT
bool
default y
-config PHYS_ADDR_T_64BIT
- bool
-
config ARCH_TEXT_BASE
hex
default 0xa0800000
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index be2146b3facb..4d56e55b533f 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -59,9 +59,6 @@ config CPU_SUPPORTS_32BIT_KERNEL
config CPU_SUPPORTS_64BIT_KERNEL
bool
-config PHYS_ADDR_T_64BIT
- bool
-
config 32BIT
bool
depends on CPU_SUPPORTS_32BIT_KERNEL
diff --git a/arch/sandbox/Kconfig b/arch/sandbox/Kconfig
index c1a51d4f021d..7c86511a2c61 100644
--- a/arch/sandbox/Kconfig
+++ b/arch/sandbox/Kconfig
@@ -32,9 +32,6 @@ config ARCH_TEXT_BASE
menu "Sandbox specific settings"
-config PHYS_ADDR_T_64BIT
- bool
-
config CC_IS_64BIT
def_bool $(success,$(srctree)/scripts/gcc-64bitptr.sh $(CC))
--
2.39.5
More information about the barebox
mailing list