arch: arm: replace PLATFORM_SPECIFIC_INIT with PLATFORM_RESET_HOOK
Use generic hook infrastrucutre instead of custom Kconfig and hooks for ARM. Replace z_arm_platform_init() with platform_reset(). Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
e260d03686
commit
f519dd1411
105 changed files with 150 additions and 146 deletions
|
@ -4,8 +4,8 @@
|
|||
add_subdirectory_ifdef(CONFIG_RISCV_CORE_NORDIC_VPR vpr)
|
||||
|
||||
if(CONFIG_ARM)
|
||||
# Let SystemInit() be called in place of z_arm_platform_init() by default.
|
||||
zephyr_linker_symbol(SYMBOL z_arm_platform_init EXPR "@SystemInit@")
|
||||
# Let SystemInit() be called in place of soc_reset_hook() by default.
|
||||
zephyr_linker_symbol(SYMBOL soc_reset_hook EXPR "@SystemInit@")
|
||||
|
||||
# This file is used when the CMake linker script generator is disabled.
|
||||
zephyr_linker_sources(SECTIONS arm_platform_init.ld)
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/* Let SystemInit() be called in place of z_arm_platform_init() by default. */
|
||||
PROVIDE(z_arm_platform_init = SystemInit);
|
||||
/* Let SystemInit() be called in place of soc_reset_hook() by default. */
|
||||
PROVIDE(soc_reset_hook = SystemInit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue