OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [sysdeps/] [linux/] [sh/] [__longjmp.S] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
/* longjmp for SH.
2
   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
3
   This file is part of the GNU C Library.
4
 
5
   The GNU C Library is free software; you can redistribute it and/or
6
   modify it under the terms of the GNU Library General Public License as
7
   published by the Free Software Foundation; either version 2 of the
8
   License, or (at your option) any later version.
9
 
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
   Library General Public License for more details.
14
 
15
   You should have received a copy of the GNU Library General Public
16
   License along with the GNU C Library; see the file COPYING.LIB.  If not,
17
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
   Boston, MA 02111-1307, USA.  */
19
 
20
#define _SETJMP_H
21
#define _ASM
22
#include 
23
 
24
/* __longjmp(jmpbuf, val) */
25
 
26
.text
27
.align 4
28
.type   __longjmp,@function
29
.globl  __longjmp;
30
__longjmp:
31
        mov.l   @r4+, r8
32
        mov.l   @r4+, r9
33
        mov.l   @r4+, r10
34
        mov.l   @r4+, r11
35
        mov.l   @r4+, r12
36
        mov.l   @r4+, r13
37
        mov.l   @r4+, r14
38
        mov.l   @r4+, r15
39
#if defined __UCLIBC_HAS_FLOATS__ && ! defined __UCLIBC_HAS_SOFT_FLOAT__
40
        lds.l   @r4+, pr
41
        ldc.l   @r4+, gbr
42
        lds.l   @r4+, fpscr
43
        fmov.s  @r4+, fr12
44
        fmov.s  @r4+, fr13
45
        mov     r5, r0          /* get the return value in place */
46
        tst     r0, r0
47
        bf.s    1f
48
         fmov.s @r4+, fr14
49
        mov     #1,r0           /* can't let setjmp() return zero! */
50
1:
51
        rts
52
         fmov.s @r4+, fr15
53
#else
54
        mov     r5, r0          /* get the return value in place */
55
        tst     r0, r0
56
        bf.s    1f
57
         lds.l  @r4+, pr
58
        mov     #1,r0           /* can't let setjmp() return zero! */
59
1:
60
        rts
61
         ldc.l  @r4+, gbr
62
#endif
63
.size __longjmp,.-__longjmp;
64
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.