diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-16 16:22:26 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 01:13:18 -0800 |
commit | 4ff7ac417d4b628c23df3ae8301d17e29e6e8f16 (patch) | |
tree | 8a0ad85722f0e927ac6c1388032481636424fb10 /include | |
parent | 22780e23c629303474797d17e7f09ad7721ef55b (diff) |
[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')
-rw-r--r-- | include/asm-sparc64/head.h | 4 |
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) |