summaryrefslogtreecommitdiff
path: root/arch/sh/crt_arch.h
blob: f8907108b6388f4d9abe72acbd4223dd7813c561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
__asm__(
".text \n"
".global " START " \n"
START ": \n"
"	mova 1f, r0 \n"
"	mov.l 1f, r5 \n"
"	add r0, r5 \n"
"	mov r15, r4 \n"
"	mov #-16, r0 \n"
"	and r0, r15 \n"
"	bsr " START "_c \n"
"	nop \n"
".align 2 \n"
".weak _DYNAMIC \n"
".hidden _DYNAMIC \n"
"1:	.long _DYNAMIC-. \n"
);

/* used by gcc for switching the FPU between single and double precision */
#ifdef SHARED
__attribute__((__visibility__("hidden")))
#endif
const unsigned long __fpscr_values[2] = { 0, 0x80000 };