浏览代码

sparc64: Fix hibernation code refrence to PAGE_OFFSET.

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>
David S. Miller 11 年之前
父节点
当前提交
9d0713edf7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      arch/sparc/power/hibernate_asm.S

+ 2 - 2
arch/sparc/power/hibernate_asm.S

@@ -54,8 +54,8 @@ ENTRY(swsusp_arch_resume)
 	 nop
 	 nop
 
 
 	/* Write PAGE_OFFSET to %g7 */
 	/* 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
 	setuw	(PAGE_SIZE-8), %g3