aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/power/hibernate_asm.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/power/hibernate_asm.S')
-rw-r--r--arch/sparc/power/hibernate_asm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/power/hibernate_asm.S b/arch/sparc/power/hibernate_asm.S
index 79942166df8..d7d9017dcb1 100644
--- 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