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

Subversion Repositories or1k

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
/*
2
 * This code fix the stack pointer so that the dynamic linker
3
 * can find argc, argv and auxvt (Auxillary Vector Table).
4
 */
5
asm(""                                  \
6
"       .text\n"                        \
7
"       .globl _dl_boot\n"              \
8
"       .type _dl_boot,@function\n"     \
9
"_dl_boot:\n"                           \
10
"       move.d $sp,$r10\n"              \
11
"       move.d $pc,$r9\n"               \
12
"       add.d _dl_boot2 - ., $r9\n"     \
13
"       jsr $r9\n"                      \
14
);
15
 
16
#define _dl_boot _dl_boot2
17
#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.