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

Side by Side Diff: fusl/src/setjmp/x32/setjmp.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/setjmp/x32/longjmp.s ('k') | fusl/src/setjmp/x86_64/longjmp.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 /* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */
2 .global __setjmp
3 .global _setjmp
4 .global setjmp
5 .type __setjmp,@function
6 .type _setjmp,@function
7 .type setjmp,@function
8 __setjmp:
9 _setjmp:
10 setjmp:
11 mov %rbx,(%rdi) /* rdi is jmp_buf, move registers onto it */
12 mov %rbp,8(%rdi)
13 mov %r12,16(%rdi)
14 mov %r13,24(%rdi)
15 mov %r14,32(%rdi)
16 mov %r15,40(%rdi)
17 lea 8(%rsp),%rdx /* this is our rsp WITHOUT current ret addr */
18 mov %rdx,48(%rdi)
19 mov (%rsp),%rdx /* save return addr ptr for new rip */
20 mov %rdx,56(%rdi)
21 xor %rax,%rax /* always return 0 */
22 ret
OLDNEW
« no previous file with comments | « fusl/src/setjmp/x32/longjmp.s ('k') | fusl/src/setjmp/x86_64/longjmp.s » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698