You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/11/11 12:02:02 UTC

[incubator-nuttx] branch master updated: armv7-r: fix arm_gic_nlines redefines

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

xiaoxiang 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 b33a925787 armv7-r: fix arm_gic_nlines redefines
b33a925787 is described below

commit b33a92578758fd9c6c5de32894073f66a7df6b11
Author: ligd <li...@xiaomi.com>
AuthorDate: Thu Sep 29 14:57:35 2022 +0800

    armv7-r: fix arm_gic_nlines redefines
    
    Signed-off-by: ligd <li...@xiaomi.com>
---
 arch/arm/src/armv7-r/arm_gicv2.c | 31 -------------------------------
 1 file changed, 31 deletions(-)

diff --git a/arch/arm/src/armv7-r/arm_gicv2.c b/arch/arm/src/armv7-r/arm_gicv2.c
index 2da122198b..070e54db00 100644
--- a/arch/arm/src/armv7-r/arm_gicv2.c
+++ b/arch/arm/src/armv7-r/arm_gicv2.c
@@ -38,37 +38,6 @@
 
 #ifdef CONFIG_ARMV7R_HAVE_GICv2
 
-/****************************************************************************
- * Public Functions
- ****************************************************************************/
-
-/****************************************************************************
- * Name: arm_gic_nlines
- *
- * Description:
- *   Return the number of interrupt lines supported by this GIC
- *   implementation (include both PPIs (32) and SPIs).
- *
- * Input Parameters:
- *   None
- *
- * Returned Value:
- *   The number of interrupt lines.
- *
- ****************************************************************************/
-
-static inline unsigned int arm_gic_nlines(void)
-{
-  uint32_t regval;
-  uint32_t field;
-
-  /* Get the number of interrupt lines. */
-
-  regval = getreg32(GIC_ICDICTR);
-  field = (regval & GIC_ICDICTR_ITLINES_MASK) >> GIC_ICDICTR_ITLINES_SHIFT;
-  return (field + 1) << 5;
-}
-
 /****************************************************************************
  * Public Functions
  ****************************************************************************/