Skip to content

Commit

Permalink
soc: nordic: vpr: remove enabling MSTATUS.MIE in boot time
Browse files Browse the repository at this point in the history
Interrupts should not be enabled this early in boot time.
Driver initializations expect IRQs not to arrive when
setting up HW.
Remove enabling `MSTATUS.MIE` in `__start`.
It will be enabled when main thread is switched to,
as threads by default start with enabled `MSTATUS.MIE`.

Signed-off-by: Marcin Szymczyk <marcin.szymczyk@nordicsemi.no>
  • Loading branch information
masz-nordic authored and fabiobaltieri committed Mar 21, 2024
1 parent d248b7b commit a994dc5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions soc/nordic/common/vpr/vector.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,5 @@ SECTION_FUNC(vectors, __start)
la t0, _irq_vector_table
csrw 0x307, t0

/* Enable mstatus.mie */
li t0, 0x1888
csrw mstatus, t0

/* Call into Zephyr initialization. */
tail __initialize

0 comments on commit a994dc5

Please sign in to comment.