cpukit/microblaze: Add exception framework

This patch updates the CPU_Exception_frame to include all necessary
registers, combines hardware snd software exception handlers into a
shared vector, provides an architecture-specific hook for taking
control of exception handling, and moves exception handling over to
actually using the CPU_Exception_frame instead of a minimal interrupt
stack frame. As the significant contents of _exception_handler.S have
been entirely rewritten, the copyright information on this file has been
updated to reflect that.
This commit is contained in:
Kinsey Moore
2022-01-26 10:18:46 -06:00
committed by Joel Sherrill
parent 37543e1968
commit 127980c799
7 changed files with 286 additions and 113 deletions

View File

@@ -76,7 +76,12 @@ _vector_interrupt:
.section .vectors.hw_exception, "ax"
.align 2
_vector_hw_exception:
brai _hw_exception_handler
/*
* Hardware and software exceptions are handled identically with the MSR[EiP]
* bit differentiating them and determining which register should be used for
* return.
*/
brai _exception_handler
.section .text
.globl _start1