URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/or1ksim/testsuite/test-code-or1k/tick
- from Rev 457 to Rev 458
- ↔ Reverse comparison
Rev 457 → Rev 458
/tick.c
250,8 → 250,11
/* Allow MAX_SPURIOUS spurious spurious interrupt */ |
if (++tick_cnt == MAX_SPURIOUS) |
{ |
ttmr &= ~SPR_TTMR_IE; |
/* Clear mode register completely */ |
ttmr = 0; |
mtspr (SPR_TTMR, ttmr); |
|
|
} |
} /* tick_int_spurious () */ |
|
574,7 → 577,7
tick_cnt = 0; |
clear_ip = 0; |
|
ttcr = clear_ttcr (); |
clear_ttcr (); |
ttmr = new_timer (0x100, SPR_TTMR_CR, SPR_TTMR_IE); |
|
while(tick_cnt != MAX_SPURIOUS) |