Commit 413d4047 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

s390/traps: print interrupt code and instruction length code

It always confuses me to see the mixed instruction length code and
interruption code on user space faults, while the message clearly
says it is the interruption code.
So split the value and print both values separately. Also add the ILC
output to the die() message, so thar user and kernel space faults
contain the same information.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 4eafad7f
...@@ -191,7 +191,8 @@ void die(struct pt_regs *regs, const char *str) ...@@ -191,7 +191,8 @@ void die(struct pt_regs *regs, const char *str)
console_verbose(); console_verbose();
spin_lock_irq(&die_lock); spin_lock_irq(&die_lock);
bust_spinlocks(1); bust_spinlocks(1);
printk("%s: %04x [#%d] ", str, regs->int_code & 0xffff, ++die_counter); printk("%s: %04x ilc:%d [#%d] ", str, regs->int_code & 0xffff,
regs->int_code >> 17, ++die_counter);
#ifdef CONFIG_PREEMPT #ifdef CONFIG_PREEMPT
printk("PREEMPT "); printk("PREEMPT ");
#endif #endif
......
...@@ -49,7 +49,8 @@ static inline void report_user_fault(struct pt_regs *regs, int signr) ...@@ -49,7 +49,8 @@ static inline void report_user_fault(struct pt_regs *regs, int signr)
return; return;
if (!printk_ratelimit()) if (!printk_ratelimit())
return; return;
printk("User process fault: interruption code 0x%X ", regs->int_code); printk("User process fault: interruption code %04x ilc:%d ",
regs->int_code & 0xffff, regs->int_code >> 17);
print_vma_addr("in ", regs->psw.addr & PSW_ADDR_INSN); print_vma_addr("in ", regs->psw.addr & PSW_ADDR_INSN);
printk("\n"); printk("\n");
show_regs(regs); show_regs(regs);
......
...@@ -261,8 +261,8 @@ static inline void report_user_fault(struct pt_regs *regs, long signr) ...@@ -261,8 +261,8 @@ static inline void report_user_fault(struct pt_regs *regs, long signr)
return; return;
if (!printk_ratelimit()) if (!printk_ratelimit())
return; return;
printk(KERN_ALERT "User process fault: interruption code 0x%X ", printk(KERN_ALERT "User process fault: interruption code %04x ilc:%d",
regs->int_code); regs->int_code & 0xffff, regs->int_code >> 17);
print_vma_addr(KERN_CONT "in ", regs->psw.addr & PSW_ADDR_INSN); print_vma_addr(KERN_CONT "in ", regs->psw.addr & PSW_ADDR_INSN);
printk(KERN_CONT "\n"); printk(KERN_CONT "\n");
printk(KERN_ALERT "failing address: %016lx TEID: %016lx\n", printk(KERN_ALERT "failing address: %016lx TEID: %016lx\n",
......
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