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
184 B
ArmAsm
14 lines
184 B
ArmAsm
.global main
|
|
main:
|
|
/* 1 + 2 == 3 */
|
|
mov x0, 1
|
|
/* test-gdb-op1 */
|
|
add x1, x0, 2
|
|
/* test-gdb-result */
|
|
cmp x1, 3
|
|
beq 1f
|
|
bl abort
|
|
1:
|
|
mov x0, 0
|
|
ret
|