summaryrefslogtreecommitdiff
path: root/core/cortex-m0/div.S
diff options
context:
space:
mode:
Diffstat (limited to 'core/cortex-m0/div.S')
-rw-r--r--core/cortex-m0/div.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/cortex-m0/div.S b/core/cortex-m0/div.S
index 833465a59e..898ecafe83 100644
--- a/core/cortex-m0/div.S
+++ b/core/cortex-m0/div.S
@@ -18,6 +18,7 @@
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "software_panic.h"
.syntax unified
@@ -161,4 +162,5 @@ L_dont_sub0:
bx lr
__aeabi_idiv0:
- bl panic_reboot
+ ldr SOFTWARE_PANIC_REASON_REG, =PANIC_SW_DIV_ZERO
+ bl exception_panic