soc: arm: remove all unnecessary NMI_INIT() calls

NMI_INIT() is now a no-op, so remove it from all SoC code. Also remove
the irq lock/unlock pattern as it was likely a cause of copy&paste when
NMI_INIT() was called.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2023-06-30 11:15:25 +02:00 committed by Carles Cufí
commit fcaa259e22
81 changed files with 4 additions and 1198 deletions

View file

@ -7,26 +7,8 @@
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/sys/barrier.h>
/**
*
* @brief Perform basic hardware initialization
*
* @return 0
*/
static int soc_init(void)
{
/* Install default handler that simply resets the CPU
* if configured in the kernel, NOP otherwise
*/
NMI_INIT();
return 0;
}
void z_arm_platform_init(void)
{
L1C_DisableCaches();
@ -40,5 +22,3 @@ void z_arm_platform_init(void)
L1C_EnableCaches();
L1C_EnableBTAC();
}
SYS_INIT(soc_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);