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

Side by Side Diff: fusl/src/thread/x32/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/x32/__unmapself.s ('k') | fusl/src/thread/x32/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 .text
2 .global __clone
3 .type __clone,@function
4 __clone:
5 movl $0x40000038,%eax /* SYS_clone */
6 mov %rdi,%r11
7 mov %rdx,%rdi
8 mov %r8,%rdx
9 mov %r9,%r8
10 mov 8(%rsp),%r10
11 mov %r11,%r9
12 and $-16,%rsi
13 sub $8,%rsi
14 mov %rcx,(%rsi)
15 syscall
16 test %eax,%eax
17 jnz 1f
18 xor %ebp,%ebp
19 pop %rdi
20 call *%r9
21 mov %eax,%edi
22 movl $0x4000003c,%eax /* SYS_exit */
23 syscall
24 hlt
25 1: ret
OLDNEW
« no previous file with comments | « fusl/src/thread/x32/__unmapself.s ('k') | fusl/src/thread/x32/syscall_cp.s » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698