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:
Kinsey Moore
2022-02-23 08:35:45 -06:00
committed by Joel Sherrill
parent ea1a4fd29b
commit dbdf38ea7b
3 changed files with 11 additions and 8 deletions
@@ -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