OSDN Git Service

hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing...
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / m68k / __longjmp.S
1
2 /* Copyright (C) 2002, David McCullough <davidm@snapgear.com> */
3 /* This file is released under the LGPL, any version you like */
4
5 #define _ASM
6 #define _SETJMP_H
7 #include <bits/setjmp.h>
8
9 .globl __longjmp;
10 .type  __longjmp,@function
11 .align 4;                                                               \
12 __longjmp:
13         moveal  %sp@(4), %a0
14         movel   %sp@(8), %d0
15         bne             1f
16         movel   #1, %d0
17 1:
18         moveml  %a0@(JB_REGS), %d2-%d7/%a2-%a7
19 #if defined(__HAVE_68881__) || defined(__HAVE_FPU__)
20         fmovemx %a0@(JB_FPREGS), %fp2-%fp7
21 #endif
22         movel   %a0@(JB_PC), %sp@
23         rts
24
25 libc_hidden_def(__longjmp)