Update include paths following the move of alpha to ports
[glibc.git] / sysdeps / am33 / __longjmp.S
blob9bdcc489e8bbcec1fa7918ddddbde1fc0e5460a0
1 /* longjmp for AM33.
2    Copyright 2001 Free Software Foundation, Inc.
3    This file is part of the GNU C Library.
5    The GNU C Library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
10    The GNU C Library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Lesser General Public License for more details.
15    You should have received a copy of the GNU Lesser General Public
16    License along with the GNU C Library; if not, write to the Free
17    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18    02111-1307 USA.  */
20 #include <sysdep.h>
21 #define _ASM
22 #define _SETJMP_H
23 #include <bits/setjmp.h>
24 #include <asm-syntax.h>
26 ENTRY (__longjmp)
27         mov d0,a0
28         mov (8,a0),d2
29         mov d2,mdr
30         mov (0,a0),d2
31         mov (4,a0),d3
32         mov (12,a0),a2
33         mov (16,a0),a3
34         mov (20,a0),a1
35         mov a1,sp
36         add 24,a0
37         mov (a0+),r4
38         mov (a0+),r5
39         mov (a0+),r6
40         mov (a0+),r7
41 #ifdef __AM33_2__
42         fmov (a0+),fs4
43         fmov (a0+),fs5
44         fmov (a0+),fs6
45         fmov (a0+),fs7
46         fmov (a0+),fs8
47         fmov (a0+),fs9
48         fmov (a0+),fs10
49         fmov (a0+),fs11
50         fmov (a0+),fs12
51         fmov (a0+),fs13
52         fmov (a0+),fs14
53         fmov (a0+),fs15
54         fmov (a0+),fs16
55         fmov (a0+),fs17
56         fmov (a0+),fs18
57         fmov (a0+),fs19
58 #endif
59         mov d1,d0
60         retf [],0
61 END (__longjmp)