When the continous mode is set and the current timer value
matches what is in timer period (TP), the timer is disabled.
This does not match the behaviour that is described in the arch
specification, nor does any of the major implementations behave
like this.
---
tick/tick.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/tick/tick.c b/tick/tick.c
index d2ad148..266d539 100644
--- a/tick/tick.c
+++ b/tick/tick.c
@@ -201,14 +201,6 @@ spr_write_ttmr (uorreg_t prev_val)
tick_counting = value & SPR_TTMR_M;
- /* If TTCR==TTMR_TP when setting MR, we disable counting??
- I think this should be looked at - Julius */
- if ((tick_counting == SPR_TTMR_CR) &&
- (cpu_state.sprs[SPR_TTCR] == (value & SPR_TTMR_TP)))
- {
- tick_counting = 0;
- }
-
sched_timer_job (prev_val);
}
--
1.8.1.2
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc