浏览代码

[SPARC64]: Kill explicit %gl register reference.

Older binutils can't handle it.  Use SET_GL() instead,
which is explicitly for this purpose.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 18 年之前
父节点
当前提交
41120551fa
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      arch/sparc64/kernel/hvtramp.S

+ 2 - 1
arch/sparc64/kernel/hvtramp.S

@@ -10,6 +10,7 @@
 #include <asm/hvtramp.h>
 #include <asm/hvtramp.h>
 #include <asm/pstate.h>
 #include <asm/pstate.h>
 #include <asm/ptrace.h>
 #include <asm/ptrace.h>
+#include <asm/head.h>
 #include <asm/asi.h>
 #include <asm/asi.h>
 
 
 	.text
 	.text
@@ -28,7 +29,7 @@
 	 * First setup basic privileged cpu state.
 	 * First setup basic privileged cpu state.
 	 */
 	 */
 hv_cpu_startup:
 hv_cpu_startup:
-	wrpr		%g0, 0, %gl
+	SET_GL(0)
 	wrpr		%g0, 15, %pil
 	wrpr		%g0, 15, %pil
 	wrpr		%g0, 0, %canrestore
 	wrpr		%g0, 0, %canrestore
 	wrpr		%g0, 0, %otherwin
 	wrpr		%g0, 0, %otherwin