From: David S. Miller Date: Fri, 17 Feb 2006 00:22:26 +0000 (-0800) Subject: [SPARC64]: Add GET_GL_GLOBAL() macro for SUN4V. X-Git-Tag: v2.6.17-rc1~1184^2~89 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4ff7ac417d4b628c23df3ae8301d17e29e6e8f16;p=linux-2.6-omap-h63xx.git [SPARC64]: Add GET_GL_GLOBAL() macro for SUN4V. So we can read the %gl register for debugging. Signed-off-by: David S. Miller --- diff --git a/include/asm-sparc64/head.h b/include/asm-sparc64/head.h index c4ac3e87aa5..67960a751f4 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)