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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [ldso/] [ldso/] [cris/] [boot1_arch.h] - Rev 1765

Compare with Previous | Blame | View Log

/*
 * This code fix the stack pointer so that the dynamic linker
 * can find argc, argv and auxvt (Auxillary Vector Table).
 */
asm(""					\
"	.text\n"			\
"	.globl _dl_boot\n"		\
"	.type _dl_boot,@function\n"	\
"_dl_boot:\n"				\
"	move.d $sp,$r10\n"		\
"	move.d $pc,$r9\n"		\
"	add.d _dl_boot2 - ., $r9\n"	\
"	jsr $r9\n"			\
);
 
#define _dl_boot _dl_boot2
#define LD_BOOT(X) static void * __attribute__ ((unused)) _dl_boot(X)
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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