From 92625d710db256ba0e853d13b24f46c735d7d708 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Wed, 9 Oct 2019 00:48:11 +0900 Subject: [PATCH] arch: arm: Make PLATFORM_SPECIFIC_INIT available to all ARM variants. Move PLATFORM_SPECIFIC_INIT declaration from Cortex-M Kconfig to the ARM arch Kconfig in order to make it available for all ARM variants. The rationale is that there is really no good reason why platform-specific initialisation should be a Cortex-M-specific feature and that Cortex-R port is expected to utilise this in a near future. Signed-off-by: Stephanos Ioannidis --- arch/arm/core/Kconfig | 6 ++++++ arch/arm/core/cortex_m/Kconfig | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/core/Kconfig b/arch/arm/core/Kconfig index 3b863fa2283..b964c8839bc 100644 --- a/arch/arm/core/Kconfig +++ b/arch/arm/core/Kconfig @@ -95,6 +95,12 @@ config RUNTIME_NMI NMI handler installed when the CPU boots. If a custom handler is needed, enable this option and attach it via _NmiHandlerSet(). +config PLATFORM_SPECIFIC_INIT + bool "Enable platform (SOC) specific startup hook" + help + The platform specific initialization code (z_platform_init) is executed + at the beginning of the startup code (__start). + config FAULT_DUMP int "Fault dump level" default 2 diff --git a/arch/arm/core/cortex_m/Kconfig b/arch/arm/core/cortex_m/Kconfig index 084e877b8a5..4ca61f1871c 100644 --- a/arch/arm/core/cortex_m/Kconfig +++ b/arch/arm/core/cortex_m/Kconfig @@ -255,12 +255,6 @@ config SW_VECTOR_RELAY (or an Armv8-M baseline core) with no VTOR and no other hardware relocation table mechanisms. -config PLATFORM_SPECIFIC_INIT - bool "Enable platform (SOC) specific startup hook" - help - The platform specific initialization code (z_platform_init) is executed - at the beginning of the startup code (__start). - endmenu endif # CPU_CORTEX_M