aboutsummaryrefslogtreecommitdiff
path: root/src/exception.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/exception.rs')
-rw-r--r--src/exception.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/exception.rs b/src/exception.rs
index f5c8c28..f5b52f6 100644
--- a/src/exception.rs
+++ b/src/exception.rs
@@ -156,10 +156,13 @@ pub extern "C" fn default_handler<T>(_token: T)
where
T: Context,
{
- // This is the actual exception handler. `_sf` is a pointer to the previous
+ // This is the actual exception handler. `_sr` is a pointer to the previous
// stack frame
#[cfg(target_arch = "arm")]
extern "C" fn handler(_sr: &StackedRegisters) -> ! {
+ // What exception is currently being serviced
+ let _e = Exception::current();
+
::asm::bkpt();
loop {}