Add ulReadValueAPSR API

This commit is contained in:
Rahul Kar 2024-07-08 17:54:22 +05:30
parent 886d1fd4ff
commit d6fff2a530
2 changed files with 14 additions and 5 deletions

View file

@ -48,6 +48,7 @@
.global FreeRTOS_SVC_Handler
.global vPortRestoreTaskContext
.global vPortInitialiseFPSCR
.global ulReadValueAPSR
.macro portSAVE_CONTEXT
@ -162,6 +163,15 @@ vPortInitialiseFPSCR:
FMXR FPSCR, R0
BX LR
/******************************************************************************
* ulReadValueAPSR is used to read the value of APSR context.
*****************************************************************************/
.align 4
.type ulReadValueAPSR, %function
ulReadValueAPSR:
MRS R0, APSR
BX LR
.align 4
.type FreeRTOS_IRQ_Handler, %function
FreeRTOS_IRQ_Handler: