baremetal: aarch64 semihosting exit

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-09-23 17:30:53 +01:00
parent f90e69045a
commit c53ccb0278
7 changed files with 65 additions and 20 deletions

View File

@@ -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