Bump version numbers for 3.13
[maemo-rb.git] / gdb / setjmp.S
blob89ad16f0f97f259bdb40b4fb24b1f124b9f7549f
1 /***************************************************************************
2  *             __________               __   ___.
3  *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
4  *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
5  *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
6  *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
7  *                     \/            \/     \/    \/            \/
8  * $Id$
9  *
10  * Copyright (C) 2002 by Red Hat Inc
11  *
12  * 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.
16  *
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
26         sts.l   pr,@-r4
28         mov.l   r15,@-r4
29         mov.l   r14,@-r4
30         mov.l   r13,@-r4
31         mov.l   r12,@-r4
33         mov.l   r11,@-r4
34         mov.l   r10,@-r4
35         mov.l   r9,@-r4
36         mov.l   r8,@-r4
38         rts
39         mov    #0,r0
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
49         mov.l   @r4+,r12
50         mov.l   @r4+,r13
51         mov.l   @r4+,r14
52         mov.l   @r4+,r15
54         lds.l   @r4+,pr
56         mov     r5,r0
57         tst     r0,r0
58         bf      retr4
59         movt    r0
60 retr4:  rts
61         nop