Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Unified Diff: fusl/src/internal/microblaze/syscall.s

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/src/internal/locale_impl.h ('k') | fusl/src/internal/mips/syscall.s » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/internal/microblaze/syscall.s
diff --git a/fusl/src/internal/microblaze/syscall.s b/fusl/src/internal/microblaze/syscall.s
new file mode 100644
index 0000000000000000000000000000000000000000..e0312e78759843e157d1705c6c4a72f37ce896de
--- /dev/null
+++ b/fusl/src/internal/microblaze/syscall.s
@@ -0,0 +1,14 @@
+.global __syscall
+.hidden __syscall
+.type __syscall,@function
+__syscall:
+ addi r12, r5, 0 # Save the system call number
+ add r5, r6, r0 # Shift the arguments, arg1
+ add r6, r7, r0 # arg2
+ add r7, r8, r0 # arg3
+ add r8, r9, r0 # arg4
+ add r9, r10, r0 # arg5
+ lwi r10, r1, 28 # Get arg6.
+ brki r14, 0x8 # syscall
+ rtsd r15, 8
+ nop
« no previous file with comments | « fusl/src/internal/locale_impl.h ('k') | fusl/src/internal/mips/syscall.s » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698