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

Side by Side Diff: fusl/src/internal/sh/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 unified diff | Download patch
« no previous file with comments | « fusl/src/internal/pthread_impl.h ('k') | fusl/src/internal/shgetc.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 .global __syscall
2 .hidden __syscall
3 .type __syscall, @function
4 __syscall:
5 ! The kernel syscall entry point documents that the trap number indicate s
6 ! the number of arguments being passed, but it then ignores that informa tion.
7 ! Since we do not actually know how many arguments are being passed, we will
8 ! say there are six, since that is the maximum we support here.
9 mov r4, r3
10 mov r5, r4
11 mov r6, r5
12 mov r7, r6
13 mov.l @r15, r7
14 mov.l @(4,r15), r0
15 mov.l @(8,r15), r1
16 trapa #31
17 or r0, r0
18 or r0, r0
19 or r0, r0
20 or r0, r0
21 or r0, r0
22 rts
23 nop
OLDNEW
« no previous file with comments | « fusl/src/internal/pthread_impl.h ('k') | fusl/src/internal/shgetc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698