diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2022-01-26 10:33:31 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-02-04 11:30:59 -0600 |
commit | 530a8c2494126c67073861a55fd81cd0e7f0f902 (patch) | |
tree | 7b360ba8ee1a87d206bcec6715a717330f41c1a2 /bsps/microblaze/shared/start/start.S | |
parent | cpukit/microblaze: Add exception framework (diff) | |
download | rtems-530a8c2494126c67073861a55fd81cd0e7f0f902.tar.bz2 |
cpukit/microblaze: Add debug vector and handler
This patch adds a vector for debug events along with a hook similar to
the exception framework. The debug vector generates an exception frame
for use by libdebugger.
Diffstat (limited to 'bsps/microblaze/shared/start/start.S')
-rw-r--r-- | bsps/microblaze/shared/start/start.S | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bsps/microblaze/shared/start/start.S b/bsps/microblaze/shared/start/start.S index bd50fe0d24..e9aaa706e5 100644 --- a/bsps/microblaze/shared/start/start.S +++ b/bsps/microblaze/shared/start/start.S @@ -46,7 +46,7 @@ # 0x14 # Hardware Interrupt _interrupt_handler # 0x18 # (-- IMM --) - # 0x1C # Breakpoint Exception (-- Don't Care --) + # 0x1C # Breakpoint Exception _debug_sw_break_handler # 0x20 # (-- IMM --) # 0x24 # Hardware Exception _hw_exception_handler @@ -73,6 +73,11 @@ _vector_sw_exception: _vector_interrupt: brai _interrupt_handler + .section .vectors.debug_sw_break, "ax" + .align 2 +_vector_debug_sw_break: + brai _debug_sw_break_handler + .section .vectors.hw_exception, "ax" .align 2 _vector_hw_exception: |