Hi Experts,
There is code pieces on Full context and reduced context in the RTX code.
What this is actually intended for ?
Thank for your response Carissa.
There are 2 types of task switch in RTX library for ARM7 and ARM9: reduced context switch and full context switch.
Reduced context switch does not store all registers to the stack on task switch. The advantage of this move is to make the system more efficient in that the switch is faster and requires less space on the stack. Some functions that utilize this type are os_tsk_pass, os_dly_wait, os_sem_wait, etc.
Then there is the full context switch that stores all registers to the stack. This task switch is slower and needs more space on the stack, ideal for swithces with timeouts (i.e. round robin). Some of the functions that utilize the full context are os_dly_wait and isr_evt_set.
Since the rate of the context switch can make or break a real-time operating system's ability to process efficiently, RTX takes advantage of the reduced context to save time wherever possible and full context in functions where the register contents are too critical to omit.
It's also worth noting that this is not relevant for Cortex-M processors, which use the CMSIS-RTOS compliant version of RTX.
References:
MCB2300 Influence of TCPnet on RTX scheduler
TestPCF8563.rar RTX_Config.c
Intern Inquiry: Full vs. Reduced Context