From 752a2506b2d125dac4b675a4ec0c992c17314e0e Mon Sep 17 00:00:00 2001 From: paperchalice Date: Fri, 27 Mar 2020 12:48:01 +0800 Subject: [PATCH] Use CMSIS wrapped asm function in "vPortValidateInterruptPriority" --- portable/GCC/ARM_CM7/r0p1/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portable/GCC/ARM_CM7/r0p1/port.c b/portable/GCC/ARM_CM7/r0p1/port.c index 1f1469797..e5ca89b76 100644 --- a/portable/GCC/ARM_CM7/r0p1/port.c +++ b/portable/GCC/ARM_CM7/r0p1/port.c @@ -709,7 +709,7 @@ static void vPortEnableVFP( void ) uint8_t ucCurrentPriority; /* Obtain the number of the currently executing interrupt. */ - __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" ); + ulCurrentInterrupt = __get_IPSR(); /* Is the interrupt number a user defined interrupt? */ if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )