yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * libc/sysdeps/linux/microblaze/crti.S -- init/fini entry code for microblaze |
| 3 | * (baselined with gcc 4.1.2) |
| 4 | * |
| 5 | * Copyright (C) 2010 Digital Design Corporation |
| 6 | * |
| 7 | * This file is subject to the terms and conditions of the GNU Lesser |
| 8 | * General Public License. See the file COPYING.LIB in the main |
| 9 | * directory of this archive for more details. |
| 10 | */ |
| 11 | |
| 12 | #define END_INIT |
| 13 | #define END_FINI |
| 14 | #define ALIGN |
| 15 | #include <libc-symbols.h> |
| 16 | |
| 17 | /*@HEADER_ENDS*/ |
| 18 | |
| 19 | .section .init |
| 20 | .align 2 |
| 21 | .globl _init |
| 22 | _init: |
| 23 | addik r1, r1, -32 |
| 24 | swi r19, r1, 28 |
| 25 | addk r19, r1, r0 |
| 26 | swi r15, r1, 0 |
| 27 | |
| 28 | ALIGN |
| 29 | END_INIT |
| 30 | |
| 31 | .section .fini |
| 32 | .align 2 |
| 33 | .globl _fini |
| 34 | _fini: |
| 35 | addik r1, r1, -32 |
| 36 | swi r19, r1, 28 |
| 37 | addk r19, r1, r0 |
| 38 | swi r15, r1, 0 |
| 39 | |
| 40 | ALIGN |
| 41 | END_FINI |