mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 13:04:27 +01:00
baremetal: get exit status working with on_exit :-)
This commit is contained in:
5
baremetal/arch/aarch64/return1.S
Normal file
5
baremetal/arch/aarch64/return1.S
Normal file
@@ -0,0 +1,5 @@
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#magic-failure-string */
|
||||
.global main
|
||||
main:
|
||||
mov x0, 1
|
||||
ret
|
||||
5
baremetal/arch/arm/return1.S
Normal file
5
baremetal/arch/arm/return1.S
Normal file
@@ -0,0 +1,5 @@
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#magic-failure-string */
|
||||
.global main
|
||||
main:
|
||||
mov r0, #1
|
||||
bx lr
|
||||
Reference in New Issue
Block a user