]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/asm-sparc64/head.h
sparc: Merge asm-sparc{,64}/shmbuf.h
[karo-tx-linux.git] / include / asm-sparc64 / head.h
index c4ac3e87aa50ad1dd413468f3c1a5360fc731f52..10e9dabc4c41337c9f4a1dfc970aa22e9e24436f 100644 (file)
@@ -1,4 +1,3 @@
-/* $Id: head.h,v 1.30 1997/08/08 08:34:33 jj Exp $ */
 #ifndef _SPARC64_HEAD_H
 #define _SPARC64_HEAD_H
 
@@ -8,6 +7,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)