summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i960/rxgen960/startup/ihandler.S
blob: 1fb600c216416edbb01a80a670cc37b5f1f3bcd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
#  $Id$
#

#######################################
# ihandler.s                          #
# Last change :  8.11.94              #
#######################################

	.text
	.globl _nmiHandler
	.globl _intr5Handler
	.globl _intr6Handler
	.globl _clockHandler 

	.text 

# NMI Handler 
_nmiHandler :
	ldconst 64, r4
	addo 	sp, r4, sp

	stq 	g0, -64(sp)
	stq 	g4, -48(sp)
	stq 	g8, -32(sp)
	stt 	g12, -16(sp)

	callx	_nmi_isr

	ldq 	-64(sp), g0
	ldq 	-48(sp), g4
	ldq 	-32(sp), g8
	ldt 	-16(sp), g12

	ret
_clockHandler :
        ldconst 64, r4
        addo    sp, r4, sp

        stq     g0, -64(sp)
        stq     g4, -48(sp)
        stq     g8, -32(sp)
        stt     g12, -16(sp)

        callx   _Clock_isr

        ldq     -64(sp), g0
        ldq     -48(sp), g4
        ldq     -32(sp), g8
        ldt     -16(sp), g12
#
#
        ret