Move all files into ports/ subdirectory in preparation for merge with glibc
[glibc.git] / ports / sysdeps / am33 / __longjmp.S
blob1d6c29e99f0099f5e15e674454b159857ff2478c
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, see
17    <http://www.gnu.org/licenses/>.  */
19 #include <sysdep.h>
20 #define _ASM
21 #define _SETJMP_H
22 #include <bits/setjmp.h>
23 #include <asm-syntax.h>
25 ENTRY (__longjmp)
26         mov d0,a0
27         mov (8,a0),d2
28         mov d2,mdr
29         mov (0,a0),d2
30         mov (4,a0),d3
31         mov (12,a0),a2
32         mov (16,a0),a3
33         mov (20,a0),a1
34         mov a1,sp
35         add 24,a0
36         mov (a0+),r4
37         mov (a0+),r5
38         mov (a0+),r6
39         mov (a0+),r7
40 #ifdef __AM33_2__
41         fmov (a0+),fs4
42         fmov (a0+),fs5
43         fmov (a0+),fs6
44         fmov (a0+),fs7
45         fmov (a0+),fs8
46         fmov (a0+),fs9
47         fmov (a0+),fs10
48         fmov (a0+),fs11
49         fmov (a0+),fs12
50         fmov (a0+),fs13
51         fmov (a0+),fs14
52         fmov (a0+),fs15
53         fmov (a0+),fs16
54         fmov (a0+),fs17
55         fmov (a0+),fs18
56         fmov (a0+),fs19
57 #endif
58         mov d1,d0
59         retf [],0
60 END (__longjmp)