Skip to content

Commit cf39cc3

Browse files
jkkmtorvalds
authored andcommitted
[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: Kyle McMartin <kyle@mcmartin.ca> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 093a07e commit cf39cc3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/parisc/kernel/signal.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,8 @@ insert_restart_trampoline(struct pt_regs *regs)
534534
* Flushing one cacheline is cheap.
535535
* "sync" on bigger (> 4 way) boxes is not.
536536
*/
537-
flush_icache_range(regs->gr[30], regs->gr[30] + 4);
537+
flush_user_dcache_range(regs->gr[30], regs->gr[30] + 4);
538+
flush_user_icache_range(regs->gr[30], regs->gr[30] + 4);
538539

539540
regs->gr[31] = regs->gr[30] + 8;
540541
/* Preserve original r28. */

0 commit comments

Comments
 (0)