mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-11-05 19:22:31 -05:00
Add ulReadValueAPSR API
This commit is contained in:
parent
886d1fd4ff
commit
d6fff2a530
2 changed files with 14 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue