From 39b111437ce89d2e90f9c3891922834b723b0878 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Wed, 11 Feb 2015 10:40:37 -0800 Subject: cortex-m0: Fix handling uint64 divide-by-0 Divide-by-0 was jumping to a missing __aeabi_ldiv0 label. Add it, equivalent to the cortex-m code. BUG=chrome-os-partner:36126 BRANCH=minnie TEST=hack into main(): volatile uint64_t a = 1, b = 2; a /= b; and see that code compiles. Change-Id: I93884c6e41c8a3c5f47c141c323860efbfbc9ba9 Signed-off-by: Randall Spangler Reviewed-on: https://chromium-review.googlesource.com/248640 Reviewed-by: Daisuke Nojiri Commit-Queue: Alec Berg --- core/cortex-m0/uldivmod.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/cortex-m0/uldivmod.S b/core/cortex-m0/uldivmod.S index 13d8c3aa10..b8855023ad 100644 --- a/core/cortex-m0/uldivmod.S +++ b/core/cortex-m0/uldivmod.S @@ -170,3 +170,6 @@ L_dont_sub4: bne L_sub_loop4 pop {r4, r5, r6, r7, pc} + +__aeabi_ldiv0: + bl panic_reboot -- cgit v1.2.1