Skip to content
Permalink
Browse files

arch: arm: add z_ prefix to _PlatformInit

Rename function _PlatformInit() to z_platform_init() to
comply with naming conventions.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
  • Loading branch information...
ioannisg authored and nashif committed May 22, 2019
1 parent 1c33d90 commit 1ba8c3402c3d1039925b12813ef87cb491c65c67
@@ -359,7 +359,7 @@ config SW_VECTOR_RELAY
config PLATFORM_SPECIFIC_INIT
bool "Enable platform (SOC) specific startup hook"
help
The platform specific initialization code (_PlatformInit) is executed
The platform specific initialization code (z_platform_init) is executed
at the beginning of the startup code (__start).

endmenu
@@ -22,7 +22,7 @@ GTEXT(__reset)
GTEXT(memset)
GDATA(_interrupt_stack)
#if defined(CONFIG_PLATFORM_SPECIFIC_INIT)
GTEXT(_PlatformInit)
GTEXT(z_platform_init)
#endif

/**
@@ -59,7 +59,7 @@ SECTION_SUBSEC_FUNC(TEXT,_reset_section,__reset)
SECTION_SUBSEC_FUNC(TEXT,_reset_section,__start)

#if defined(CONFIG_PLATFORM_SPECIFIC_INIT)
bl _PlatformInit
bl z_platform_init
#endif

/* lock interrupts: will get unlocked when switch to main task */
@@ -65,8 +65,8 @@ rel_vals:
.short 0x0FFF
.short 0x0C24

GTEXT(_PlatformInit)
SECTION_FUNC(TEXT,_PlatformInit)
GTEXT(z_platform_init)
SECTION_FUNC(TEXT,z_platform_init)

/* Both the M0+ and M4 core come via this shared startup code,
* but the M0+ and M4 core have different vector tables.

0 comments on commit 1ba8c34

Please sign in to comment.
You can’t perform that action at this time.