diff options
author | Randall Spangler <rspangler@chromium.org> | 2015-02-11 10:40:37 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-02-11 23:05:07 +0000 |
commit | 39b111437ce89d2e90f9c3891922834b723b0878 (patch) | |
tree | dca7f4f9b8bb7448c447171577e1b4d528576cdb | |
parent | ea3dbb98b4f7e566107e50103146961c3f3f5e6b (diff) | |
download | chrome-ec-39b111437ce89d2e90f9c3891922834b723b0878.tar.gz |
cortex-m0: Fix handling uint64 divide-by-0stabilize-6783.B
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 <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/248640
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Commit-Queue: Alec Berg <alecaberg@chromium.org>
-rw-r--r-- | core/cortex-m0/uldivmod.S | 3 |
1 files changed, 3 insertions, 0 deletions
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 |