mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
baremetal: aarch64 semihosting exit
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
.global main
|
||||
main:
|
||||
/* SYS_EXIT */
|
||||
mov r0, #0x18
|
||||
/* ADP_Stopped_ApplicationExit */
|
||||
ldr r1, =#0x20026
|
||||
/* Do the semihosting call on A32. */
|
||||
svc 0x00123456
|
||||
|
||||
Reference in New Issue
Block a user