summaryrefslogtreecommitdiff
path: root/arch/metag/kernel/tbiunexp.S
blob: 907bbe0b2e68a0ce5d3150a252b038bd7665686f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Pass a breakpoint through to Codescape */

#include <asm/tbx.h>

	.text
        .global	___TBIUnExpXXX
        .type   ___TBIUnExpXXX,function
___TBIUnExpXXX:
	TSTT	D0Ar2,#TBICTX_CRIT_BIT	! Result of nestable int call?
	BZ	$LTBINormCase		! UnExpXXX at background level
	MOV	D0Re0,TXMASKI		! Read TXMASKI
	XOR	TXMASKI,D1Re0,D1Re0	! Turn off BGNDHALT handling!
	OR	D0Ar2,D0Ar2,D0Re0	! Preserve bits cleared
$LTBINormCase:
	MSETL 	[A0StP],D0Ar6,D0Ar4,D0Ar2	! Save args on stack
	SETL 	[A0StP++],D0Ar2,D1Ar1	! Init area for returned values
	SWITCH 	#0xC20208		! Total stack frame size 8 Dwords
					!            write back size 2 Dwords
	GETL 	D0Re0,D1Re0,[--A0StP]	! Get result
	SUB 	A0StP,A0StP,#(8*3)	! Recover stack frame
	MOV 	PC,D1RtP
        .size   	___TBIUnExpXXX,.-___TBIUnExpXXX