lkml.org 
[lkml]   [2008]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectPARISC fix signal trampoline cache flushing
    -stable review patch.  If anyone has any objections, please let us know.
    ---------------------

    From: Kyle McMartin <kyle@mcmartin.ca>

    upstream commit: cf39cc3b56bc4a562db6242d3069f65034ec7549

    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>
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
    ---
    arch/parisc/kernel/signal.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- a/arch/parisc/kernel/signal.c
    +++ b/arch/parisc/kernel/signal.c
    @@ -534,7 +534,8 @@ insert_restart_trampoline(struct pt_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. */
    --


    \
     
     \ /
      Last update: 2008-04-17 03:27    [W:0.022 / U:125.632 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site