Skip to contentSkip to conversation

LoongArch: Using the Exception return address instead of the ERA

PATCH New Yanteng Si 1 participant 1 message Oct 21, 2024 LoongArch

lore
Share & tools
lore

Yanteng Si

author
#0 lore raw

PATCH 1/1 LoongArch: Using the Exception return address instead of the ERA

The information contained in the comment for LOONGARCH_CSR_ERA is even less informative than the macro itself, which can cause confusion for junior developers. Let's use the full English term.

---
 arch/loongarch/include/asm/loongarch.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/loongarch/include/asm/loongarch.h +1 -1
index 26542413a5b0..64ad277e096e 100644
@@ -250,7 +250,7 @@
 #define  CSR_ESTAT_IS_WIDTH		15
 #define  CSR_ESTAT_IS			(_ULCAST_(0x7fff) << CSR_ESTAT_IS_SHIFT)
 
-#define LOONGARCH_CSR_ERA		0x6	/* ERA */
+#define LOONGARCH_CSR_ERA		0x6	/* Exception return address */
 
 #define LOONGARCH_CSR_BADV		0x7	/* Bad virtual address */
 
Signature · 1 line
2.47.0