summaryrefslogtreecommitdiffstats
path: root/arch/m68k/kernel/entry.S
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2009-05-19 15:38:01 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2009-12-04 21:22:35 +0100
commitf195e2bff3000b8bc251ee6f685e0f027eec6f25 (patch)
tree6a872faedca9f07af26b7ba90551258a10a3bd94 /arch/m68k/kernel/entry.S
parentfaa47b466935e73251b18b17d51455b06ed65764 (diff)
downloadop-kernel-dev-f195e2bff3000b8bc251ee6f685e0f027eec6f25.zip
op-kernel-dev-f195e2bff3000b8bc251ee6f685e0f027eec6f25.tar.gz
m68k: ptrace fixes
This fixes the following issues in ptrace: - when single stepping into the signal handler stop at the first insn of the handler - handle non-zero stkadj when accessing pc and sr in ptregs - correctly handle PT_SR in PTRACE_POKEUSR - report -EIO when trying to read unknown offset in PTRACE_PEEKUSR Additionally, the handling of the special case that PT_SR accesses a 16 bit word instead of a 32 bit word has been moved into get_reg/put_reg. Signed-off-by: Andreas Schwab <schwab@linux-m68k.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/kernel/entry.S')
-rw-r--r--arch/m68k/kernel/entry.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/m68k/kernel/entry.S b/arch/m68k/kernel/entry.S
index c5b3363..77fc7c1 100644
--- a/arch/m68k/kernel/entry.S
+++ b/arch/m68k/kernel/entry.S
@@ -179,7 +179,11 @@ do_signal_return:
addql #8,%sp
RESTORE_SWITCH_STACK
addql #4,%sp
- jbra resume_userspace
+ tstl %d0
+ jeq resume_userspace
+ | when single stepping into handler stop at the first insn
+ btst #6,%curptr@(TASK_INFO+TINFO_FLAGS+2)
+ jeq resume_userspace
do_delayed_trace:
bclr #7,%sp@(PT_OFF_SR) | clear trace bit in SR
OpenPOWER on IntegriCloud