blob: 89ad16f0f97f259bdb40b4fb24b1f124b9f7549f [file] [log] [blame]
Linus Nielsen Feltzing1dc42d12003-05-17 00:31:50 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 by Red Hat Inc
11 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
Linus Nielsen Feltzing1dc42d12003-05-17 00:31:50 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21 .type _setjmp,@function
22 .global _setjmp
23_setjmp:
24 add #(9*4),r4
25
26 sts.l pr,@-r4
27
28 mov.l r15,@-r4
29 mov.l r14,@-r4
30 mov.l r13,@-r4
31 mov.l r12,@-r4
32
33 mov.l r11,@-r4
34 mov.l r10,@-r4
35 mov.l r9,@-r4
36 mov.l r8,@-r4
37
38 rts
39 mov #0,r0
40
41 .type _longjmp,@function
42 .global _longjmp
43_longjmp:
44 mov.l @r4+,r8
45 mov.l @r4+,r9
46 mov.l @r4+,r10
47 mov.l @r4+,r11
48
49 mov.l @r4+,r12
50 mov.l @r4+,r13
51 mov.l @r4+,r14
52 mov.l @r4+,r15
53
54 lds.l @r4+,pr
55
56 mov r5,r0
57 tst r0,r0
58 bf retr4
59 movt r0
60retr4: rts
61 nop