summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/head.h
diff options
context:
space:
mode:
authorDavid S. Miller2006-02-17 01:22:26 +0100
committerDavid S. Miller2006-03-20 10:13:18 +0100
commit4ff7ac417d4b628c23df3ae8301d17e29e6e8f16 (patch)
tree8a0ad85722f0e927ac6c1388032481636424fb10 /include/asm-sparc64/head.h
parent[SPARC64]: Set dummy bucket->{imap,iclr} unique on SUN4V. (diff)
downloadkernel-qcow2-linux-4ff7ac417d4b628c23df3ae8301d17e29e6e8f16.tar.gz
kernel-qcow2-linux-4ff7ac417d4b628c23df3ae8301d17e29e6e8f16.tar.xz
kernel-qcow2-linux-4ff7ac417d4b628c23df3ae8301d17e29e6e8f16.zip
[SPARC64]: Add GET_GL_GLOBAL() macro for SUN4V.
So we can read the %gl register for debugging. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/head.h')
-rw-r--r--include/asm-sparc64/head.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-sparc64/head.h b/include/asm-sparc64/head.h
index c4ac3e87aa50..67960a751f4d 100644
--- a/include/asm-sparc64/head.h
+++ b/include/asm-sparc64/head.h
@@ -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)