soc: arm: move z_clearfaults() in kernel_arch_init()
In kernel_arch_init() we initialize the ARM core (interrupt setup, fault init, etc.) so we can also move z_clearfaults() in the same function and skip invoking it in the SoC init functions. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
348b0266d8
commit
fb713aa062
26 changed files with 1 additions and 52 deletions
|
@ -62,8 +62,6 @@ static int stm32f0_init(struct device *arg)
|
|||
|
||||
key = irq_lock();
|
||||
|
||||
z_clearfaults();
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
|
@ -30,8 +30,6 @@ static int stm32f1_init(struct device *arg)
|
|||
|
||||
key = irq_lock();
|
||||
|
||||
z_clearfaults();
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
|
@ -34,8 +34,6 @@ static int stm32f2_init(struct device *arg)
|
|||
|
||||
key = irq_lock();
|
||||
|
||||
z_clearfaults();
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
|
@ -30,8 +30,6 @@ static int stm32f3_init(struct device *arg)
|
|||
|
||||
key = irq_lock();
|
||||
|
||||
z_clearfaults();
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
|
@ -31,8 +31,6 @@ static int st_stm32f4_init(struct device *arg)
|
|||
|
||||
key = irq_lock();
|
||||
|
||||
z_clearfaults();
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
|
@ -37,8 +37,6 @@ static int st_stm32f7_init(struct device *arg)
|
|||
SCB_EnableDCache();
|
||||
}
|
||||
|
||||
z_clearfaults();
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
|
@ -32,8 +32,6 @@ static int stm32l0_init(struct device *arg)
|
|||
|
||||
key = irq_lock();
|
||||
|
||||
z_clearfaults();
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
|
@ -32,8 +32,6 @@ static int stm32l1_init(struct device *arg)
|
|||
|
||||
key = irq_lock();
|
||||
|
||||
z_clearfaults();
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
|
@ -31,8 +31,6 @@ static int stm32l4_init(struct device *arg)
|
|||
|
||||
key = irq_lock();
|
||||
|
||||
z_clearfaults();
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
|
@ -32,8 +32,6 @@ static int stm32m4_init(struct device *arg)
|
|||
|
||||
key = irq_lock();
|
||||
|
||||
z_clearfaults();
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
|
@ -30,8 +30,6 @@ static int stm32wb_init(struct device *arg)
|
|||
|
||||
key = irq_lock();
|
||||
|
||||
z_clearfaults();
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue