Subversion Repositories HelenOS-historic

Rev

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

Rev 958 Rev 1008
Line 78... Line 78...
78
# and call exc_dispatch().
78
# and call exc_dispatch().
79
#
79
#
80
.macro handler i n
80
.macro handler i n
81
	push %eax
81
	push %eax
82
 
82
 
-
 
83
	/*
83
	# Test if this is interrupt with error word or not
84
	 * Test if this is interrupt with error word or not.
-
 
85
	 * Be careful about width of the shift.
-
 
86
	 */
-
 
87
	.iflt \i-32
84
	movl $(1<<\i), %eax
88
		movl $(1<<\i), %eax
-
 
89
	.else
-
 
90
		movl $0, %eax
-
 
91
	.endif
85
	andl $ERROR_WORD_INTERRUPT_LIST,%eax
92
	andl $ERROR_WORD_INTERRUPT_LIST,%eax
86
 
93
 
87
	/*
94
	/*
88
	 * If this interrupt/exception  stores error word,
95
	 * If this interrupt/exception  stores error word,
89
	 * we need to pop EAX.
96
	 * we need to pop EAX.