lkml.org 
[lkml]   [2014]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.16 111/127] sparc64: Fix hibernation code refrence to PAGE_OFFSET.
    Date
    3.16-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: "David S. Miller" <davem@davemloft.net>

    We changed PAGE_OFFSET to be a variable rather than a constant,
    but this reference here in the hibernate assembler got missed.

    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    arch/sparc/power/hibernate_asm.S | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    --- a/arch/sparc/power/hibernate_asm.S
    +++ b/arch/sparc/power/hibernate_asm.S
    @@ -54,8 +54,8 @@ ENTRY(swsusp_arch_resume)
    nop

    /* Write PAGE_OFFSET to %g7 */
    - sethi %uhi(PAGE_OFFSET), %g7
    - sllx %g7, 32, %g7
    + sethi %hi(PAGE_OFFSET), %g7
    + ldx [%g7 + %lo(PAGE_OFFSET)], %g7

    setuw (PAGE_SIZE-8), %g3




    \
     
     \ /
      Last update: 2014-10-28 08:01    [W:2.119 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site