OSDN Git Service

Replace FSF snail mail address with URLs
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / frv / crti.S
1 /* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2.1 of the
7 License, or (at your option) any later version.
8
9 In addition to the permissions in the GNU Lesser General Public
10 License, the Free Software Foundation gives you unlimited
11 permission to link the compiled version of this file with other
12 programs, and to distribute those programs without any restriction
13 coming from the use of this file.  (The GNU Lesser General Public
14 License restrictions do apply in other respects; for example, they
15 cover modification of the file, and distribution when not linked
16 into another program.)
17
18 The GNU C Library is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21 Library General Public License for more details.
22
23 You should have received a copy of the GNU Lesser General Public
24 License along with the GNU C Library; see the file COPYING.LIB.  If
25 not, see <http://www.gnu.org/licenses/>.  */
26
27         .section .init,"x"
28         .p2align 2
29         .globl _init
30         .type   _init, @function
31 _init:
32         addi sp,#-16,sp
33         st.p fp, @(sp,gr0)
34         mov sp, fp
35         movsg lr, gr5
36         sti gr15, @(fp,4) 
37         sti gr5, @(fp,8)
38         
39         .section .fini,"x"
40         .p2align 2
41         .globl _fini
42         .type   _fini, @function
43 _fini:
44         addi sp,#-16,sp
45         st.p fp, @(sp,gr0)
46         mov sp, fp
47         movsg lr, gr5
48         sti gr15, @(fp,4)
49         sti gr5, @(fp,8)