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

Side by Side Diff: fusl/src/thread/aarch64/clone.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/thread/aarch64/__unmapself.s ('k') | fusl/src/thread/aarch64/syscall_cp.s » ('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 // __clone(func, stack, flags, arg, ptid, tls, ctid)
2 // x0, x1, w2, x3, x4, x5, x6
3
4 // syscall(SYS_clone, flags, stack, ptid, tls, ctid)
5 // x8, x0, x1, x2, x3, x4
6
7 .global __clone
8 .type __clone,%function
9 __clone:
10 // align stack and save func,arg
11 and x1,x1,#-16
12 stp x0,x3,[x1,#-16]!
13
14 // syscall
15 uxtw x0,w2
16 mov x2,x4
17 mov x3,x5
18 mov x4,x6
19 mov x8,#220 // SYS_clone
20 svc #0
21
22 cbz x0,1f
23 // parent
24 ret
25 // child
26 1: ldp x1,x0,[sp],#16
27 blr x1
28 mov x8,#93 // SYS_exit
29 svc #0
OLDNEW
« no previous file with comments | « fusl/src/thread/aarch64/__unmapself.s ('k') | fusl/src/thread/aarch64/syscall_cp.s » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698