aboutsummaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorSven Schnelle2021-10-01 13:42:08 +0200
committerVasily Gorbik2021-10-26 15:21:28 +0200
commitc8f573eccb7398d7c198e547c630351e69af5ca1 (patch)
treefc4e6ba830973162eecfc2f4967198cbef70d6c3 /arch/s390
parentada1da31ce34248bc97ca8f801f2cf6efa378a81 (diff)
s390/ptrace: add last_break member to pt_regs
Instead of using args[0] for the value of the last breaking event address register, add a member to make things more obvious. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/include/asm/ptrace.h1
-rw-r--r--arch/s390/kernel/dumpstack.c2
-rw-r--r--arch/s390/kernel/traps.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/arch/s390/include/asm/ptrace.h b/arch/s390/include/asm/ptrace.h
index 82fc11907451..4ffa8e7f0ed3 100644
--- a/arch/s390/include/asm/ptrace.h
+++ b/arch/s390/include/asm/ptrace.h
@@ -96,6 +96,7 @@ struct pt_regs {
};
unsigned long flags;
unsigned long cr1;
+ unsigned long last_break;
};
/*
diff --git a/arch/s390/kernel/dumpstack.c b/arch/s390/kernel/dumpstack.c
index db1bc00229ca..85f326e258df 100644
--- a/arch/s390/kernel/dumpstack.c
+++ b/arch/s390/kernel/dumpstack.c
@@ -152,7 +152,7 @@ void show_stack(struct task_struct *task, unsigned long *stack,
static void show_last_breaking_event(struct pt_regs *regs)
{
printk("Last Breaking-Event-Address:\n");
- printk(" [<%016lx>] %pSR\n", regs->args[0], (void *)regs->args[0]);
+ printk(" [<%016lx>] %pSR\n", regs->last_break, (void *)regs->last_break);
}
void show_registers(struct pt_regs *regs)
diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c
index bcefc2173de4..d984f0b42604 100644
--- a/arch/s390/kernel/traps.c
+++ b/arch/s390/kernel/traps.c
@@ -314,7 +314,7 @@ void noinstr __do_pgm_check(struct pt_regs *regs)
if (last_break < 4096)
last_break = 1;
current->thread.last_break = last_break;
- regs->args[0] = last_break;
+ regs->last_break = last_break;
}
if (S390_lowcore.pgm_code & 0x0200) {