Tracker: Feature Requests

5 GCC Coretx M3 port improvement - ID: 3528995
Last Update: Comment added ( darrenjenkins )

Currenty it is not valid to set configMAX_SYSCALL_INTERRUPT_PRIORITY to 0 (highest prority).
This is because of the way the port masks isr's. ( Using the basepri register, which is disabled with a 0 value ).
The port can be improved with some #if ( configMAX_SYSCALL_INTERRUPT_PRIORITY == 0 ) magic to use different asm in this configuration to instead disable/enable isr's and apropriate exceptions.


Darren Jenkins ( darrenjenkins ) - 2012-05-23 00:12:23 PDT

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )

Date: 2012-05-24 18:36:49 PDT
Sender: darrenjenkins

Thinking about it, perhaps the following would resolve the misconfiguration
issue in a more simple fashion:

#if ( configMAX_SYSCALL_INTERRUPT_PRIORITY == 0 )
#error This FreeRTOS port does not support
configMAX_SYSCALL_INTERRUPT_PRIORITY = 0
/*
** defining configMAX_SYSCALL_INTERRUPT_PRIORITY to 0 (highest priority)
** is not valid on this port due to the way interrupt masking is handled
** please #define it to 1(or lower), and configure all ISR's that use
system services to
** this priority and below.
*/
#endif

Darren J.


Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.