mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
test-baremetal: fix missing setting x0 return value Examples were just returning on ret without setting x0, which led to failures... those were not noticed because of how broken the testing system was ;-)
14 lines
201 B
ArmAsm
14 lines
201 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 lkmc_assert_fail
|
|
1:
|
|
mov r0, #0
|
|
bx lr
|