Files
linux-kernel-module-cheat/baremetal/arch/arm/add.S
Ciro Santilli 六四事件 法轮功 5391bc1bfd 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!
2019-05-21 00:00:00 +00:00

14 lines
190 B
ArmAsm

.global main
main:
/* 1 + 2 == 3 */
mov r0, #1
/* test-gdb-op1 */
add r1, r0, #2
/* test-gdb-result */
cmp r1, #3
beq 1f
bl abort
1:
mov r0, #0
bx lr