summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/v850/gdbv850sim/startup/trap.S
blob: b6003b216d9e6abdfcc83ebb90652f103a43c0d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* from libgloss/v850 */
	.text
	.global	___trap0
___trap0:
	trap 31
	tst r10,r10
	bz .L0
/*
 *  Libgloss cares about the errno from this. We don't
	movhi hi(_errno),r0,r6
	st.w r10,lo(_errno)[r6]
*/
.L0:
	jmp [r31]