mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-30 05:24:25 +01:00
baremetal: allow arbitrary exit status with the magic string
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 ;-)
This commit is contained in:
@@ -4,26 +4,26 @@
|
||||
*/
|
||||
.global main
|
||||
main:
|
||||
mov x0, #1
|
||||
mov x0, 1
|
||||
/* test-gdb-x0 */
|
||||
mov x1, #2
|
||||
mov x1, 2
|
||||
/* test-gdb-x1 */
|
||||
|
||||
mov x29, #1
|
||||
mov x29, 1
|
||||
/* test-gdb-x29 */
|
||||
mov x30, #2
|
||||
mov x30, 2
|
||||
/* test-gdb-x30 */
|
||||
|
||||
fmov d0, #1.5
|
||||
fmov d0, 1.5
|
||||
/* test-gdb-d0 */
|
||||
fmov d1, #2.5
|
||||
fmov d1, 2.5
|
||||
/* test-gdb-d1 */
|
||||
|
||||
fmov d30, #1.5
|
||||
fmov d30, 1.5
|
||||
/* test-gdb-d30 */
|
||||
fmov d31, #2.5
|
||||
fmov d31, 2.5
|
||||
/* test-gdb-d31 */
|
||||
|
||||
/* Exit required since we messed up with x30 which is the lr. */
|
||||
mov x0, #0
|
||||
mov x0, 0
|
||||
bl exit
|
||||
|
||||
Reference in New Issue
Block a user