[SPARC64]: Add GET_GL_GLOBAL() macro for SUN4V.
[deliverable/linux.git] / 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)
This page took 0.026393 seconds and 5 git commands to generate.