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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [ldso/] [ldso/] [sh/] [boot1_arch.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
/* Any assmbly language/system dependent hacks needed to setup boot1.c so it
2
 * will work as expected and cope with whatever platform specific wierdness is
3
 * needed for this architecture.  */
4
 
5
asm("" \
6
"       .text\n"                        \
7
"       .globl  _dl_boot\n"             \
8
"_dl_boot:\n"                           \
9
"       mov     r15, r4\n"              \
10
"       mov.l   .L_dl_boot2, r0\n"      \
11
"       bsrf    r0\n"                   \
12
"       add     #4, r4\n"               \
13
".jmp_loc:\n"                           \
14
"       jmp     @r0\n"                  \
15
"        mov    #0, r4  !call _start with arg == 0\n" \
16
".L_dl_boot2:\n"                        \
17
"       .long   _dl_boot2-.jmp_loc\n"   \
18
"       .previous\n"                    \
19
);
20
 
21
#define _dl_boot _dl_boot2
22
#define LD_BOOT(X)   static void *  __attribute__ ((unused)) _dl_boot (X)

powered by: WebSVN 2.1.0

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