mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
[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>
This commit is contained in:
parent
22780e23c6
commit
4ff7ac417d
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,10 @@
|
||||||
#define SET_GL(val) \
|
#define SET_GL(val) \
|
||||||
.word 0xa1902000 | val
|
.word 0xa1902000 | val
|
||||||
|
|
||||||
|
/* rdpr %gl, %gN */
|
||||||
|
#define GET_GL_GLOBAL(N) \
|
||||||
|
.word 0x81540000 | (N << 25)
|
||||||
|
|
||||||
#define KERNBASE 0x400000
|
#define KERNBASE 0x400000
|
||||||
|
|
||||||
#define PTREGS_OFF (STACK_BIAS + STACKFRAME_SZ)
|
#define PTREGS_OFF (STACK_BIAS + STACKFRAME_SZ)
|
||||||
|
|
Loading…
Reference in a new issue