You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/04/14 13:35:58 UTC

[incubator-nuttx] branch master updated: arm/rtl8720c: Remove up_getsp which is already implemented in arch/arm/arch.h

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new a94b7b9cca arm/rtl8720c: Remove up_getsp which is already implemented in arch/arm/arch.h
a94b7b9cca is described below

commit a94b7b9cca1b43ca09cfdf431d328c7adf53bd5a
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Thu Apr 14 05:44:37 2022 +0800

    arm/rtl8720c: Remove up_getsp which is already implemented in arch/arm/arch.h
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 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
  *