mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-25 09:07:14 +08:00
microblaze: Decouple exceptions from interrupts
Exception handling should be enabled at all times during execution to ensure that exceptions are not ignored which would cause further problems. This separates use of the exception enable bit from use of the interrupt enable bit in the machine status register so that they can be manipulated independently.
This commit is contained in:
committed by
Joel Sherrill
parent
ea1a4fd29b
commit
dbdf38ea7b
@@ -81,6 +81,9 @@ _crtinit:
|
||||
#ifndef __rtems__
|
||||
brlid r15, main /* Execute the program */
|
||||
#else
|
||||
mfs r3, rmsr
|
||||
ori r3, r3, 0x100 /* Set Exception Enable MSR flag */
|
||||
mts rmsr, r3
|
||||
brlid r15, boot_card
|
||||
#endif /* __rtems__ */
|
||||
addi r5, r0, 0
|
||||
|
||||
Reference in New Issue
Block a user