提交 e156be69 编写于 作者: H He Sheng 提交者: guzitao

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: NHe Sheng <hesheng@wxiat.com>
Reviewed-by: NCui Wei <cuiwei@wxiat.com>
Signed-off-by: NGu Zitao <guzitao@wxiat.com>
上级 d5b85d88
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册