1
/* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */
5
.type __setjmp,@function
6
.type _setjmp,@function
11
mov %rbx,(%rdi) /* rdi is jmp_buf, move registers onto it */
17
lea 8(%rsp),%rdx /* this is our rsp WITHOUT current ret addr */
19
mov (%rsp),%rdx /* save return addr ptr for new rip */
21
xor %rax,%rax /* always return 0 */