aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel
diff options
context:
space:
mode:
authorKyle McMartin <kyle@mcmartin.ca>2008-04-15 18:36:38 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-15 18:51:36 -0400
commitcf39cc3b56bc4a562db6242d3069f65034ec7549 (patch)
tree2787288d407b074548bdc2d79b947b79d5f0b55c /arch/parisc/kernel
parent093a07e2fdfaddab7fc7d4adc76cc569c86603d7 (diff)
[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>
Diffstat (limited to 'arch/parisc/kernel')
-rw-r--r--arch/parisc/kernel/signal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c
index 58fccc96d003..06213d1d6d95 100644
--- a/arch/parisc/kernel/signal.c
+++ b/arch/parisc/kernel/signal.c
@@ -534,7 +534,8 @@ insert_restart_trampoline(struct pt_regs *regs)
534 * Flushing one cacheline is cheap. 534 * Flushing one cacheline is cheap.
535 * "sync" on bigger (> 4 way) boxes is not. 535 * "sync" on bigger (> 4 way) boxes is not.
536 */ 536 */
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);
538 539
539 regs->gr[31] = regs->gr[30] + 8; 540 regs->gr[31] = regs->gr[30] + 8;
540 /* Preserve original r28. */ 541 /* Preserve original r28. */