-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f90e690
commit c53ccb0
Showing
7 changed files
with
65 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.global main | ||
main: | ||
/* 0x20026 == ADP_Stopped_ApplicationExit */ | ||
mov x1, #0x26 | ||
movk x1, #2, lsl #16 | ||
str x1, [sp,#0] | ||
|
||
/* Exit status code. Host QEMU process exits with that status. */ | ||
mov x0, #0 | ||
str x0, [sp,#8] | ||
|
||
/* x1 contains the address of parameter block. | ||
* Any memory address could be used. */ | ||
mov x1, sp | ||
|
||
/* SYS_EXIT */ | ||
mov w0, #0x18 | ||
|
||
/* Do the semihosting call on A64. */ | ||
hlt 0xf000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters