arm: rename z_platform_init to z_arm_platform_init
Platform specific initialization during early boot has been a feature supported only by Cortex-M; the Kconfig symbol is defined in arch/arm Kconfig space. We rename the z_platform_init() function to z_arm_platform_init(), to indicate more clearly that this is an internal, private ARM-only API. This commit does not introduce behavioral changes. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
ab7258a9d5
commit
1706b4dfaa
7 changed files with 11 additions and 11 deletions
|
@ -132,8 +132,8 @@ config RUNTIME_NMI
|
|||
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).
|
||||
The platform specific initialization code (z_arm_platform_init) is
|
||||
executed at the beginning of the startup code (__start).
|
||||
|
||||
config FAULT_DUMP
|
||||
int "Fault dump level"
|
||||
|
|
|
@ -22,7 +22,7 @@ GTEXT(z_arm_reset)
|
|||
GTEXT(memset)
|
||||
GDATA(z_interrupt_stacks)
|
||||
#if defined(CONFIG_PLATFORM_SPECIFIC_INIT)
|
||||
GTEXT(z_platform_init)
|
||||
GTEXT(z_arm_platform_init)
|
||||
#endif
|
||||
#if defined(CONFIG_INIT_ARCH_HW_AT_BOOT)
|
||||
GTEXT(z_arm_init_arch_hw_at_boot)
|
||||
|
@ -79,7 +79,7 @@ SECTION_SUBSEC_FUNC(TEXT,_reset_section,__start)
|
|||
#endif /* CONFIG_INIT_ARCH_HW_AT_BOOT */
|
||||
|
||||
#if defined(CONFIG_PLATFORM_SPECIFIC_INIT)
|
||||
bl z_platform_init
|
||||
bl z_arm_platform_init
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_INIT_ARCH_HW_AT_BOOT)
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#define PMU_FLASH_WS (0x3U)
|
||||
|
||||
void z_platform_init(void)
|
||||
void z_arm_platform_init(void)
|
||||
{
|
||||
uint32_t temp;
|
||||
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
_ASM_FILE_PROLOGUE
|
||||
|
||||
GTEXT(SystemInit)
|
||||
GTEXT(z_platform_init)
|
||||
GTEXT(z_arm_platform_init)
|
||||
|
||||
SECTION_FUNC(TEXT, z_platform_init)
|
||||
SECTION_FUNC(TEXT, z_arm_platform_init)
|
||||
|
||||
/* Implement z_platform_init() directly in ASM,
|
||||
/* Implement z_arm_platform_init() directly in ASM,
|
||||
* and ensure no stack access is performed until
|
||||
* we jump to SystemInit().
|
||||
*/
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <init.h>
|
||||
#include <kernel.h>
|
||||
|
||||
void z_platform_init(void)
|
||||
void z_arm_platform_init(void)
|
||||
{
|
||||
SYS_UnlockReg();
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ static int soc_init(const struct device *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void z_platform_init(void)
|
||||
void z_arm_platform_init(void)
|
||||
{
|
||||
L1C_DisableCaches();
|
||||
L1C_DisableBTAC();
|
||||
|
|
|
@ -30,7 +30,7 @@ static int soc_init(const struct device *arg)
|
|||
|
||||
SYS_INIT(soc_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
||||
void z_platform_init(void)
|
||||
void z_arm_platform_init(void)
|
||||
{
|
||||
/*
|
||||
* Use normal exception vectors address range (0x0-0x1C).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue