From e4ca29df7bc5b272c861d94beca6c72384720e6e Mon Sep 17 00:00:00 2001 From: gexueyuan <331942106@qq.com> Date: Fri, 24 May 2024 15:25:22 +0800 Subject: [PATCH] fix gicv3 Distributor register offset error --- libcpu/aarch64/common/gicv3.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcpu/aarch64/common/gicv3.h b/libcpu/aarch64/common/gicv3.h index d449774c5fe..e964a8de841 100644 --- a/libcpu/aarch64/common/gicv3.h +++ b/libcpu/aarch64/common/gicv3.h @@ -99,8 +99,8 @@ #define GIC_DIST_SOFTINT(hw_base) HWREG32((hw_base) + 0xf00U) #define GIC_DIST_CPENDSGI(hw_base, n) HWREG32((hw_base) + 0xf10U + ((n) / 4U) * 4U) #define GIC_DIST_SPENDSGI(hw_base, n) HWREG32((hw_base) + 0xf20U + ((n) / 4U) * 4U) -#define GIC_DIST_ICPIDR2(hw_base) HWREG32((hw_base) + 0xfe8U) -#define GIC_DIST_IROUTER(hw_base, n) HWREG64((hw_base) + 0x6000U + (n) * 8U) +#define GIC_DIST_ICPIDR2(hw_base) HWREG32((hw_base) + 0xffe8U) +#define GIC_DIST_IROUTER(hw_base, n) HWREG64((hw_base) + 0x6100U + (n) * 8U) /* SGI base address is at 64K offset from Redistributor base address */ #define GIC_RSGI_OFFSET 0x10000