mirror of
https://github.com/t-crest/rtems.git
synced 2025-12-29 10:30:50 +00:00
At Clock_exit, mask timer interrupts instead of just disabling them
This commit is contained in:
@@ -378,6 +378,10 @@ void Install_clock(
|
|||||||
|
|
||||||
void Clock_exit( void )
|
void Clock_exit( void )
|
||||||
{
|
{
|
||||||
|
/* mask interrupt */
|
||||||
|
|
||||||
|
intr_mask(EXC_INTR_USEC);
|
||||||
|
|
||||||
/* turn off the timer interrupts */
|
/* turn off the timer interrupts */
|
||||||
|
|
||||||
patmos_disable_interrupts();
|
patmos_disable_interrupts();
|
||||||
|
|||||||
@@ -55,9 +55,17 @@ void intr_clear_all_pending(void){
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unmask a particular interrupts
|
* Unmask a particular interrupt
|
||||||
* n - The interrupt to be unmasked
|
* n - The interrupt to be unmasked
|
||||||
*/
|
*/
|
||||||
void intr_unmask(unsigned n){
|
void intr_unmask(unsigned n){
|
||||||
EXC_MASK |= (1 << n);
|
EXC_MASK |= (1 << n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Mask a particular interrupt
|
||||||
|
* n - The interrupt to be masked
|
||||||
|
*/
|
||||||
|
void intr_mask(unsigned n){
|
||||||
|
EXC_MASK &= ~(1 << n);
|
||||||
|
}
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ void intr_clear_all_pending(void);
|
|||||||
|
|
||||||
void intr_unmask(unsigned n);
|
void intr_unmask(unsigned n);
|
||||||
|
|
||||||
|
void intr_mask(unsigned n);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* end of include file */
|
/* end of include file */
|
||||||
|
|||||||
Reference in New Issue
Block a user