[SPARC64]: Add GET_GL_GLOBAL() macro for SUN4V.
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 17 Feb 2006 00:22:26 +0000 (16:22 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:13:18 +0000 (01:13 -0800)
So we can read the %gl register for debugging.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/asm-sparc64/head.h

index c4ac3e87aa50ad1dd413468f3c1a5360fc731f52..67960a751f4dae9cc79d851c68c56e4271fb08ee 100644 (file)
@@ -8,6 +8,10 @@
 #define SET_GL(val)    \
        .word   0xa1902000 | val
 
+       /* rdpr %gl, %gN */
+#define GET_GL_GLOBAL(N)       \
+       .word   0x81540000 | (N << 25)
+
 #define KERNBASE       0x400000
 
 #define        PTREGS_OFF      (STACK_BIAS + STACKFRAME_SZ)