Get rid of lkmc_assert_fail in favor of abort + assert

What was missing previously was implementing abort in baremetal.

I had done that previously and forgotten to do this conversion!
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-21 00:00:00 +00:00
parent 3b192bacfc
commit 5391bc1bfd
13 changed files with 9 additions and 48 deletions

View File

@@ -7,7 +7,7 @@ main:
/* test-gdb-result */
cmp x1, 3
beq 1f
bl lkmc_assert_fail
bl abort
1:
mov x0, 0
ret

View File

@@ -12,7 +12,7 @@ main:
fmov d3, 4.0
fcmp d2, d3
beq 1f
bl lkmc_assert_fail
bl abort
1:
/* Now in 32-bit. */
@@ -26,7 +26,7 @@ main:
fmov s3, 4.0
fcmp s2, s3
beq 1f
bl lkmc_assert_fail
bl abort
1:
/* Higher registers. */
@@ -40,7 +40,7 @@ main:
/* test-gdb-d31 */
fcmp d30, d31
beq 1f
bl lkmc_assert_fail
bl abort
1:
mov x0, 0

View File

@@ -12,7 +12,7 @@ main:
ldr x1, mynewvar
cmp x0, x1
beq 1f
bl lkmc_assert_fail
bl abort
1:
/* Go home. */

View File

@@ -7,7 +7,7 @@ main:
/* test-gdb-result */
cmp r1, #3
beq 1f
bl lkmc_assert_fail
bl abort
1:
mov r0, #0
bx lr