6 .macro make_ccount_delta target, delta
9 sub \delta, \target, \delta
10 slli \delta, \delta, CCOUNT_SHIFT
11 add \target, \target, \delta
35 test ccount_update_deadline
52 movi a3, 1 << XCHAL_TIMER0_INTERRUPT
65 make_ccount_delta a2, a15
79 test ccompare0_interrupt
90 make_ccount_delta a2, a15
96 movi a2, 1 << XCHAL_TIMER0_INTERRUPT
105 assert eqi, a2, 4 /* LEVEL1_INTERRUPT_CAUSE */
108 test ccompare1_interrupt
109 set_vector level3, 2f
119 make_ccount_delta a2, a15
124 movi a2, 1 << XCHAL_TIMER1_INTERRUPT
134 test ccompare2_interrupt
135 set_vector level5, 2f
145 make_ccount_delta a2, a15
150 movi a2, 1 << XCHAL_TIMER2_INTERRUPT
160 test ccompare_interrupt_masked
161 set_vector kernel, 2f
169 movi a3, 2 * WAIT_LOOPS
170 make_ccount_delta a2, a15
178 movi a2, 1 << XCHAL_TIMER0_INTERRUPT
187 assert eqi, a2, 4 /* LEVEL1_INTERRUPT_CAUSE */
190 test ccompare_interrupt_masked_waiti
191 set_vector kernel, 2f
199 movi a3, 2 * WAIT_LOOPS
200 make_ccount_delta a2, a15
208 movi a2, 1 << XCHAL_TIMER0_INTERRUPT
214 assert eqi, a2, 4 /* LEVEL1_INTERRUPT_CAUSE */