mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 01:58:32 -04:00
Update MPU wrapper for pcTaskGetName API (#737)
* Update MPU wrapper for pcTaskGetName * Fix Formatting * Fix mpu wrappers V1 --------- Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
This commit is contained in:
parent
a5bf4d9a7f
commit
02be485e04
36 changed files with 31 additions and 851 deletions
|
@ -396,34 +396,6 @@ UBaseType_t MPU_uxTaskGetNumberOfTasks( void ) /* __attribute__ (( naked )) FREE
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
char * MPU_pcTaskGetName( TaskHandle_t xTaskToQuery ) __attribute__ (( naked )) FREERTOS_SYSTEM_CALL;
|
||||
|
||||
char * MPU_pcTaskGetName( TaskHandle_t xTaskToQuery ) /* __attribute__ (( naked )) FREERTOS_SYSTEM_CALL */
|
||||
{
|
||||
__asm volatile
|
||||
(
|
||||
" .syntax unified \n"
|
||||
" .extern MPU_pcTaskGetNameImpl \n"
|
||||
" \n"
|
||||
" push {r0} \n"
|
||||
" mrs r0, control \n"
|
||||
" tst r0, #1 \n"
|
||||
" bne MPU_pcTaskGetName_Unpriv \n"
|
||||
" MPU_pcTaskGetName_Priv: \n"
|
||||
" pop {r0} \n"
|
||||
" b MPU_pcTaskGetNameImpl \n"
|
||||
" MPU_pcTaskGetName_Unpriv: \n"
|
||||
" pop {r0} \n"
|
||||
" svc %0 \n"
|
||||
" bl MPU_pcTaskGetNameImpl \n"
|
||||
" svc %1 \n"
|
||||
" bx lr \n"
|
||||
" \n"
|
||||
: : "i" ( portSVC_SYSTEM_CALL_ENTER ), "i" ( portSVC_SYSTEM_CALL_EXIT ) : "memory"
|
||||
);
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
#if ( configGENERATE_RUN_TIME_STATS == 1 )
|
||||
|
||||
configRUN_TIME_COUNTER_TYPE MPU_ulTaskGetRunTimeCounter( const TaskHandle_t xTask ) __attribute__ (( naked )) FREERTOS_SYSTEM_CALL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue