Commit 9d4ad498 authored by He Sheng's avatar He Sheng Committed by guzitao
Browse files

sw64: print real address of sp in show_regs()

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I56OLG



--------------------------------

In show_regs(), we really want to print the address of stack
pointer for debugging.

Signed-off-by: default avatarHe Sheng <hesheng@wxiat.com>
Reviewed-by: default avatarCui Wei <cuiwei@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 4a20297e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -69,7 +69,8 @@ void show_regs(struct pt_regs *regs)
	       regs->r22, regs->r23, regs->r24);
	printk("t11= %016lx  pv = %016lx  at = %016lx\n",
	       regs->r25, regs->r27, regs->r28);
	printk("gp = %016lx  sp = %p\n", regs->gp, regs+1);
	printk("gp = %016lx  sp = %px\n", regs->gp,
	       user_mode(regs) ? (void *)rdusp() : (regs + 1));
}

static void show_code(unsigned int *pc)