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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [config/] [sh/] [crtn.asm] - Blame information for rev 282

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 282 jeremybenn
/* Copyright (C) 2000, 2001, 2009 Free Software Foundation, Inc.
2
   This file was adapted from glibc sources.
3
 
4
This file is part of GCC.
5
 
6
GCC is free software; you can redistribute it and/or modify it
7
under the terms of the GNU General Public License as published by the
8
Free Software Foundation; either version 3, or (at your option) any
9
later version.
10
 
11
GCC is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
General Public License for more details.
15
 
16
Under Section 7 of GPL version 3, you are granted additional
17
permissions described in the GCC Runtime Library Exception, version
18
3.1, as published by the Free Software Foundation.
19
 
20
You should have received a copy of the GNU General Public License and
21
a copy of the GCC Runtime Library Exception along with this program;
22
see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
23
.  */
24
 
25
/* See an explanation about .init and .fini in crti.asm.  */
26
 
27
        .section .init
28
#if __SHMEDIA__
29
        add     r14, r63, r15
30
        ld.q    r15, 0, r18
31
        ptabs   r18, tr0
32
        ld.q    r15, 8, r14
33
        addi    r15, 16, r15
34
        blink   tr0, r63
35
#elif __SH5__ && ! __SHMEDIA__
36
        mov     r14,r15
37
        lds.l   @r14+,pr
38
        mov.l   @r14,r14
39
        rts
40
        add     #8,r15
41
#else
42
        mov     r14,r15
43
        lds.l   @r15+,pr
44
        mov.l   @r15+,r14
45
        rts
46
#ifdef __ELF__
47
        mov.l   @r15+,r12
48
#else
49
        nop
50
#endif
51
#endif /* __SHMEDIA__ */
52
 
53
        .section .fini
54
#if __SHMEDIA__
55
        add     r14, r63, r15
56
        ld.q    r15, 0, r18
57
        ptabs   r18, tr0
58
        ld.q    r15, 8, r14
59
        addi    r15, 16, r15
60
        blink   tr0, r63
61
#elif __SH5__ && ! __SHMEDIA__
62
        mov     r14,r15
63
        lds.l   @r14+,pr
64
        mov.l   @r14,r14
65
        rts
66
        add     #8,r15
67
#else
68
        mov     r14,r15
69
        lds.l   @r15+,pr
70
        mov.l   @r15+,r14
71
        rts
72
#ifdef __ELF__
73
        mov.l   @r15+,r12
74
#else
75
        nop
76
#endif
77
#endif /* __SHMEDIA__ */

powered by: WebSVN 2.1.0

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