-/* Copyright 2011 Nicholas J. Kain, licensed GNU LGPL 2.1 or later */
+/* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */
.global _longjmp
.global longjmp
-.type _longjmp,%function
-.type longjmp,%function
+.type _longjmp,@function
+.type longjmp,@function
_longjmp:
longjmp:
mov %rsi,%rax /* val will be longjmp return */
mov %rdx,%rsp
mov 56(%rdi),%rdx /* this is the instruction pointer */
jmp *%rdx /* goto saved address without altering rsp */
-.size _longjmp,.-_longjmp
-.size longjmp,.-longjmp