提交 9ea80662 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

s390: show_registers() should not map user space addresses to kernel symbols

It doesn't make sense to map user space addresses to kernel symbols when
show_registers() prints a user space psw. So just skip the translation part
if a user space psw is handled.
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 3b7df342
...@@ -144,10 +144,10 @@ void show_registers(struct pt_regs *regs) ...@@ -144,10 +144,10 @@ void show_registers(struct pt_regs *regs)
char *mode; char *mode;
mode = user_mode(regs) ? "User" : "Krnl"; mode = user_mode(regs) ? "User" : "Krnl";
printk("%s PSW : %p %p (%pSR)\n", printk("%s PSW : %p %p", mode, (void *)regs->psw.mask, (void *)regs->psw.addr);
mode, (void *) regs->psw.mask, if (!user_mode(regs))
(void *) regs->psw.addr, printk(" (%pSR)", (void *)regs->psw.addr);
(void *) regs->psw.addr); printk("\n");
printk(" R:%x T:%x IO:%x EX:%x Key:%x M:%x W:%x " printk(" R:%x T:%x IO:%x EX:%x Key:%x M:%x W:%x "
"P:%x AS:%x CC:%x PM:%x", mask_bits(regs, PSW_MASK_PER), "P:%x AS:%x CC:%x PM:%x", mask_bits(regs, PSW_MASK_PER),
mask_bits(regs, PSW_MASK_DAT), mask_bits(regs, PSW_MASK_IO), mask_bits(regs, PSW_MASK_DAT), mask_bits(regs, PSW_MASK_IO),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册