Skip to content

Commit

Permalink
[SPARC64]: Add GET_GL_GLOBAL() macro for SUN4V.
Browse files Browse the repository at this point in the history
So we can read the %gl register for debugging.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 22780e2 commit 4ff7ac4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/asm-sparc64/head.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4ff7ac4

Please sign in to comment.