OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22780e2
)
[SPARC64]: Add GET_GL_GLOBAL() macro for SUN4V.
author
David S. Miller
<davem@sunset.davemloft.net>
Fri, 17 Feb 2006 00:22:26 +0000
(16:22 -0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:13:18 +0000
(
01:13
-0800)
So we can read the %gl register for debugging.
Signed-off-by: David S. Miller <davem@davemloft.net>
include/asm-sparc64/head.h
patch
|
blob
|
history
diff --git
a/include/asm-sparc64/head.h
b/include/asm-sparc64/head.h
index
c4ac3e8
..
67960a7
100644
(file)
--- 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)