Commit cf39cc3b authored by Kyle McMartin's avatar Kyle McMartin Committed by Linus Torvalds

[PARISC] fix signal trampoline cache flushing

The signal trampolines were accidently flushing the kernel I$ instead of
the users.  Fix that up, and also add a missing user D$ flush while
we're at it.
Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 093a07e2
...@@ -534,7 +534,8 @@ insert_restart_trampoline(struct pt_regs *regs) ...@@ -534,7 +534,8 @@ insert_restart_trampoline(struct pt_regs *regs)
* Flushing one cacheline is cheap. * Flushing one cacheline is cheap.
* "sync" on bigger (> 4 way) boxes is not. * "sync" on bigger (> 4 way) boxes is not.
*/ */
flush_icache_range(regs->gr[30], regs->gr[30] + 4); flush_user_dcache_range(regs->gr[30], regs->gr[30] + 4);
flush_user_icache_range(regs->gr[30], regs->gr[30] + 4);
regs->gr[31] = regs->gr[30] + 8; regs->gr[31] = regs->gr[30] + 8;
/* Preserve original r28. */ /* Preserve original r28. */
......
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