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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [ldso/] [ldso/] [mips/] [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
 
6
asm("" \
7
"       .text\n"                        \
8
"       .globl  _dl_boot\n"             \
9
"_dl_boot:\n"                           \
10
"       .set noreorder\n"               \
11
"       bltzal $0, 0f\n"                \
12
"       nop\n"                          \
13
"0:     .cpload $31\n"                  \
14
"       .set reorder\n"                 \
15
"       la $4, _DYNAMIC\n"              \
16
"       sw $4, -0x7ff0($28)\n"          \
17
"       move $4, $29\n"                 \
18
"       la $8, coff\n"                  \
19
"       .set noreorder\n"               \
20
"       bltzal $0, coff\n"              \
21
"       nop\n"                          \
22
"coff:  subu $8, $31, $8\n"             \
23
"       .set reorder\n"                 \
24
"       la $25, _dl_boot2\n"            \
25
"       addu $25, $8\n"                 \
26
"       jalr $25\n"                     \
27
"       lw $4, 0($29)\n"                \
28
"       la $5, 4($29)\n"                \
29
"       sll $6, $4, 2\n"                \
30
"       addu $6, $6, $5\n"              \
31
"       addu $6, $6, 4\n"               \
32
"       la $7, _dl_elf_main\n"          \
33
"       lw $25, 0($7)\n"                \
34
"       jr $25\n"                       \
35
);
36
 
37
#define _dl_boot _dl_boot2
38
#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.