From a94b7b9cca1b43ca09cfdf431d328c7adf53bd5a Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Thu, 14 Apr 2022 05:44:37 +0800 Subject: [PATCH] arm/rtl8720c: Remove up_getsp which is already implemented in arch/arm/arch.h Signed-off-by: Xiang Xiao --- arch/arm/src/rtl8720c/ameba_nvic.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/arch/arm/src/rtl8720c/ameba_nvic.c b/arch/arm/src/rtl8720c/ameba_nvic.c index 060d3d5f0e..5dd1287f4f 100644 --- a/arch/arm/src/rtl8720c/ameba_nvic.c +++ b/arch/arm/src/rtl8720c/ameba_nvic.c @@ -82,21 +82,6 @@ static int (* __vectors[NR_IRQS - NVIC_IRQ_FIRST])(void); * Private Functions ****************************************************************************/ -/**************************************************************************** - * Name: up_getsp - ****************************************************************************/ - -static inline uint32_t up_getsp(void) -{ - uint32_t sp; - __asm__ - ( - "\tmov %0, sp\n\t" - : "=r"(sp) - ); - return sp; -} - /**************************************************************************** * Name: nvic_irqinfo *