Subversion Repositories HelenOS-historic

Rev

Rev 534 | Rev 717 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 534 Rev 576
Line 73... Line 73...
73
#
73
#
74
# Declare interrupt handlers for n interrupt
74
# Declare interrupt handlers for n interrupt
75
# vectors starting at vector i.
75
# vectors starting at vector i.
76
#
76
#
77
# The handlers setup data segment registers
77
# The handlers setup data segment registers
78
# and call trap_dispatcher().
78
# and call exc_dispatch().
79
#
79
#
80
.macro handler i n
80
.macro handler i n
81
	push %ebp
81
	push %ebp
82
	movl %esp,%ebp
82
	movl %esp,%ebp
83
	pusha
83
	pusha
Line 92... Line 92...
92
 
92
 
93
	movl $(\i),%edi
93
	movl $(\i),%edi
94
	pushl %ebp
94
	pushl %ebp
95
	addl $4,(%esp)
95
	addl $4,(%esp)
96
	pushl %edi
96
	pushl %edi
97
	call trap_dispatcher
97
	call exc_dispatch
98
	addl $8,%esp
98
	addl $8,%esp
99
 
99
 
100
	pop %es
100
	pop %es
101
	pop %ds
101
	pop %ds
102
 
102