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/nuttx.git

commit 0383808b325086d3a097a2d5909b7a42060e183b
Author: hujun5 <[email protected]>
AuthorDate: Wed Sep 3 16:51:51 2025 +0800

    arm64/gic: remove GIC single security state configuration check
    
    According to ARM GIC documentation, GICD_CTLR.DS bit is read-only and 
cannot be
    modified by software. Remove the unnecessary runtime check that attempts to 
set this bit
    for CONFIG_ARCH_SINGLE_SECURITY_STATE configuration, simplifying the GIC 
initialization flow.
    
    Signed-off-by: hujun5 <[email protected]>
---
 arch/arm64/src/common/arm64_gicv3.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/arch/arm64/src/common/arm64_gicv3.c 
b/arch/arm64/src/common/arm64_gicv3.c
index e776dd6e92a..1a6073c3d9d 100644
--- a/arch/arm64/src/common/arm64_gicv3.c
+++ b/arch/arm64/src/common/arm64_gicv3.c
@@ -569,21 +569,6 @@ static void gicv3_dist_init(void)
   putreg32(0, GICD_CTLR);
   gic_wait_rwp(GIC_SPI_INT_BASE);
 
-#ifdef CONFIG_ARCH_SINGLE_SECURITY_STATE
-
-  /* Before configuration, we need to check whether
-   * the GIC single security state mode is supported.
-   * Make sure GICD_CTRL_NS is 1.
-   */
-
-  sys_set_bit(GICD_CTLR, GICD_CTRL_DS);
-  if (!sys_test_bit(GICD_CTLR, GICD_CTRL_DS))
-    {
-      sinfo("Current GIC does not support single security state\n");
-      PANIC();
-    }
-#endif
-
   /* Default configuration of all SPIs */
 
   for (intid = GIC_SPI_INT_BASE; intid < num_ints;

Reply via email to