aboutsummaryrefslogtreecommitdiffstats
path: root/source/handlers.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2021-10-30 16:49:20 -0400
committerClyne Sullivan <clyne@bitgloo.com>2021-10-30 16:49:20 -0400
commitff2054f2cb8a780936d95741e1daa7df789fa246 (patch)
tree1980e1f75df9555421b3206d153adaeff9c86036 /source/handlers.cpp
parent6f1c5203f14f82b6a10c9756ef1dc39bc8631ec0 (diff)
fix fault handling; fix LEDs for rev2
Diffstat (limited to 'source/handlers.cpp')
-rw-r--r--source/handlers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/handlers.cpp b/source/handlers.cpp
index 2ff948d..43e65c3 100644
--- a/source/handlers.cpp
+++ b/source/handlers.cpp
@@ -108,7 +108,7 @@ void MemManage_Handler()
asm("mov %0, lr" : "=r" (lr));
// 2. Recover from the fault.
- ConversionManager::abort();
+ ConversionManager::abort((lr & (1 << 4)) ? false : true);
// 3. Return.
asm("mov lr, %0; bx lr" :: "r" (lr));