]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PARISC] fix signal trampoline cache flushing
authorKyle McMartin <kyle@mcmartin.ca>
Tue, 15 Apr 2008 22:36:38 +0000 (18:36 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Apr 2008 22:51:36 +0000 (15:51 -0700)
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>
arch/parisc/kernel/signal.c

index 58fccc96d0035362aaada7b17521c1346bb15a61..06213d1d6d958f54d8a3139f9443aab13a5bbaed 100644 (file)
@@ -534,7 +534,8 @@ insert_restart_trampoline(struct pt_regs *regs)
                 * Flushing one cacheline is cheap.
                 * "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;
                /* Preserve original r28. */