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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [ldso/] [ldso/] [powerpc/] [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
/* Overrive the default _dl_boot function, and replace it with a bit of asm.
6
 * Then call the real _dl_boot function, which is now named _dl_boot2. */
7
 
8
asm("" \
9
"       .text\n"                        \
10
"       .globl  _dl_boot\n"             \
11
"_dl_boot:\n"                           \
12
"       mr      3,1\n"                  \
13
"       addi    1,1,-16\n"              \
14
"       bl      _dl_boot2\n"            \
15
".previous\n"                           \
16
);
17
 
18
#define _dl_boot _dl_boot2
19
#define LD_BOOT(X)   static void *  __attribute__ ((unused)) _dl_boot (X)
20
 

powered by: WebSVN 2.1.0

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