Skip to contentSkip to conversation

ARMv8: add Kconfig and CPU_V8 option

RFC PATCH New fenghua at phytium.com.cn 2 participants 2 messages Feb 3, 2015 – Jul 2, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 ARMv8: add Kconfig and CPU_V8 option

From: David Feng <[email protected]>

This patch add Kconfig to armv8.

---
 arch/arm/Kconfig           |   16 +++++++++++-----
 arch/arm/cpu/armv8/Kconfig |   10 ++++++++++
 2 files changed, 21 insertions(+), 5 deletions(-)
 create mode 100644 arch/arm/cpu/armv8/Kconfig
arch/arm/Kconfig +11 -5
index 986b4c5..a01cb3c 100644
@@ -33,6 +33,10 @@ config CPU_V7
         bool
         select HAS_VBAR
 
+config CPU_V8
+        bool
+        select ARM64
+
 config CPU_PXA
         bool
 
@@ -729,24 +733,24 @@ config TEGRA
 
 config TARGET_VEXPRESS64_AEMV8A
 	bool "Support vexpress_aemv8a"
-	select ARM64
+	select CPU_V8
 
 config TARGET_VEXPRESS64_BASE_FVP
 	bool "Support Versatile Express ARMv8a FVP BASE model"
-	select ARM64
+	select CPU_V8
 	select SEMIHOSTING
 
 config TARGET_VEXPRESS64_JUNO
 	bool "Support Versatile Express Juno Development Platform"
-	select ARM64
+	select CPU_V8
 
 config TARGET_LS2085A_EMU
 	bool "Support ls2085a_emu"
-	select ARM64
+	select CPU_V8
 
 config TARGET_LS2085A_SIMU
 	bool "Support ls2085a_simu"
-	select ARM64
+	select CPU_V8
 
 config TARGET_LS1021AQDS
 	bool "Support ls1021aqds"
@@ -855,6 +859,8 @@ source "arch/arm/cpu/armv7/zynq/Kconfig"
 
 source "arch/arm/cpu/armv7/Kconfig"
 
+source "arch/arm/cpu/armv8/Kconfig"
+
 source "board/aristainetos/Kconfig"
 source "board/BuR/kwb/Kconfig"
 source "board/BuR/tseries/Kconfig"
arch/arm/cpu/armv8/Kconfig new file +10 -0
new file mode 100644
index 0000000..5953848
@@ -0,0 +1,10 @@
+if CPU_V8
+
+menu "ARMv8"
+
+config ARMV8_SWITCH_TO_EL1
+	boolean "Switch to exception level 1 when loading OS"
+
+endmenu
+
+endif
Signature · 1 line
1.7.9.5
#1 lore raw

RFC PATCH 1/1 ARMv8: add Kconfig and CPU_V8 option

Hello fenghua at phytium.com.cn,

Quoted 10 lines · fenghua at phytium.com.cn

From: David Feng <[email protected]>

This patch add Kconfig to armv8.

---
 arch/arm/Kconfig           |   16 +++++++++++-----
 arch/arm/cpu/armv8/Kconfig |   10 ++++++++++
 2 files changed, 21 insertions(+), 5 deletions(-)
 create mode 100644 arch/arm/cpu/armv8/Kconfig

Apologies, I'd put this on the backburner as it was an RFC.

Your patch posted on March 2015 patch creates the file arch/arm/cpu/armv8/Kconfig, which already exists AFAICT since September 2014. Which tree was your patch created against ?

In any case, it needs to be rebased on current mailine or ARM tree.

Amicalement,

Signature · 1 line
Albert.