Skip to content

Commit 41fee4f

Browse files
Yanteng Sichenhuacai
authored andcommitted
LoongArch: Complete KSave registers definition
According to the "LoongArch Reference Manual Volume 1: Basic Architecture", the KSave registers (SAVE0-SAVE15) are defined in Section 7.4.16 "Data Save (SAVE)" and listed in Table 7-1 "Control and Status Registers Overview". These registers occupy the CSR addresses from 0x30 to 0x3F, with 16 registers in total. This patch completes the definitions of KS9 to KS15, so as to match the architecture specification. Reviewed-by: Wentao Guan <guanwentao@uniontech.com> Signed-off-by: Yanteng Si <siyanteng@cqsoftware.com.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 0a91336 commit 41fee4f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/loongarch/include/asm/loongarch.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,13 @@
451451
#define LOONGARCH_CSR_KS6 0x36
452452
#define LOONGARCH_CSR_KS7 0x37
453453
#define LOONGARCH_CSR_KS8 0x38
454+
#define LOONGARCH_CSR_KS9 0x39
455+
#define LOONGARCH_CSR_KS10 0x3a
456+
#define LOONGARCH_CSR_KS11 0x3b
457+
#define LOONGARCH_CSR_KS12 0x3c
458+
#define LOONGARCH_CSR_KS13 0x3d
459+
#define LOONGARCH_CSR_KS14 0x3e
460+
#define LOONGARCH_CSR_KS15 0x3f
454461

455462
/* Exception allocated KS0, KS1 and KS2 statically */
456463
#define EXCEPTION_KS0 LOONGARCH_CSR_KS0

0 commit comments

Comments
 (0)