Commit f324fa58 authored by Sven Schnelle's avatar Sven Schnelle Committed by Helge Deller

parisc: also set iaoq_b in instruction_pointer_set()

When setting the instruction pointer on PA-RISC we also need
to set the back of the instruction queue to the new offset, otherwise
we will execute on instruction from the new location, and jumping
back to the old location stored in iaoq_b.
Signed-off-by: default avatarSven Schnelle <svens@stackframe.org>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Fixes: 75ebedf1 ("parisc: Add HAVE_REGS_AND_STACK_ACCESS_API feature")
Cc: stable@vger.kernel.org # 4.19+
parent 45efd871
...@@ -28,7 +28,8 @@ static inline unsigned long regs_return_value(struct pt_regs *regs) ...@@ -28,7 +28,8 @@ static inline unsigned long regs_return_value(struct pt_regs *regs)
static inline void instruction_pointer_set(struct pt_regs *regs, static inline void instruction_pointer_set(struct pt_regs *regs,
unsigned long val) unsigned long val)
{ {
regs->iaoq[0] = val; regs->iaoq[0] = val;
regs->iaoq[1] = val + 4;
} }
/* Query offset/name of register from its name/offset */ /* Query offset/name of register from its name/offset */
......
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