summaryrefslogtreecommitdiff
path: root/ldso/ldso/cris/boot1_arch.h
blob: d51cd59d3861c2a29115e9a4b21dae3fb1b46430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * 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"			\
);