mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 11:41: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
195 B
ArmAsm
14 lines
195 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 lkmc_assert_fail
|
|
1:
|
|
mov x0, 0
|
|
ret
|