mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
What was missing previously was implementing abort in baremetal. I had done that previously and forgotten to do this conversion!
14 lines
190 B
ArmAsm
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
|