mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +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 ;-)
10 lines
149 B
ArmAsm
10 lines
149 B
ArmAsm
/* See the aarch64 version. */
|
|
.global main
|
|
main:
|
|
mov r0, #1
|
|
/* test-gdb-r0 */
|
|
mov r1, #2
|
|
/* test-gdb-r1 */
|
|
mov r0, #0
|
|
bx lr
|