Continue work on RX600 port - work in progress. Added the SET/CLEAR from ISR macros.

This commit is contained in:
Richard Barry 2010-08-13 17:49:15 +00:00
parent 21898cc9d9
commit 383f0b0f2f
2 changed files with 5 additions and 28 deletions

View file

@ -96,8 +96,6 @@ static void prvStartFirstTask( void );
extern void *pxCurrentTCB;
unsigned char ucIPLToRestore = 0;
/*-----------------------------------------------------------*/
/*
@ -200,29 +198,6 @@ void vTickISR( void )
}
/*-----------------------------------------------------------*/
void vPortSetInterruptMask( void )
{
unsigned char ucPreviousIPL;
/* Store the current IPL to ensure it is restored correctly later if it is
not currently 0. This is a stack variable, so there should not be a race
condition even if there is an interrupt or context switch before the new
IPL value gets set. */
ucPreviousIPL = get_ipl();
/* Set the mask up to the max syscall priority. */
set_ipl( configMAX_SYSCALL_INTERRUPT_PRIORITY );
/* Now the mask is set there will not be a context switch, so the previous
and current IPL values can be compared. This ensures against the IPL being
set back to zero too early when critical sections nest. */
if( ucPreviousIPL < configMAX_SYSCALL_INTERRUPT_PRIORITY )
{
ucIPLToRestore = ucPreviousIPL;
}
}
/*-----------------------------------------------------------*/
#pragma inline_asm prvStartFirstTask
static void prvStartFirstTask( void )
{