Commit 05fa8d49 authored by WANG Xuerui's avatar WANG Xuerui Committed by Huacai Chen

LoongArch: Fix format of CSR lines during show_regs()

Use uppercase CSR names throughout for consistency with the manual
wording, and right-align the keys. The "CSR" part is inferrable from
context, hence dropped for more horizontal space.
Signed-off-by: default avatarWANG Xuerui <git@xen0n.name>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent 863b3795
......@@ -193,16 +193,12 @@ static void __show_regs(const struct pt_regs *regs)
}
#undef GPR_FIELD
/*
* Saved csr registers
*/
printk("CSR crmd: %08lx ", regs->csr_crmd);
printk("CSR prmd: %08lx ", regs->csr_prmd);
printk("CSR euen: %08lx ", regs->csr_euen);
printk("CSR ecfg: %08lx ", regs->csr_ecfg);
printk("CSR estat: %08lx ", regs->csr_estat);
pr_cont("\n");
/* Print saved important CSRs */
printk(" CRMD: %08lx\n", regs->csr_crmd);
printk(" PRMD: %08lx\n", regs->csr_prmd);
printk(" EUEN: %08lx\n", regs->csr_euen);
printk(" ECFG: %08lx\n", regs->csr_ecfg);
printk("ESTAT: %08lx\n", regs->csr_estat);
exccode = ((regs->csr_estat) & CSR_ESTAT_EXC) >> CSR_ESTAT_EXC_SHIFT;
excsubcode = ((regs->csr_estat) & CSR_ESTAT_ESUBCODE) >> CSR_ESTAT_ESUBCODE_SHIFT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment