[SPARC64]: Add initial code to twiddle %gl on trap entry/exit.
[powerpc.git] / include / asm-sparc64 / head.h
index 0abd3a6..ff76c09 100644 (file)
@@ -4,12 +4,17 @@
 
 #include <asm/pstate.h>
 
+       /* wrpr %g0, val, %gl */
+#define SET_GL(val)    \
+       .word   0xa1902000 | val
+
 #define KERNBASE       0x400000
 
 #define        PTREGS_OFF      (STACK_BIAS + STACKFRAME_SZ)
 
 #define __CHEETAH_ID   0x003e0014
 #define __JALAPENO_ID  0x003e0016
+#define __SERRANO_ID   0x003e0022
 
 #define CHEETAH_MANUF          0x003e
 #define CHEETAH_IMPL           0x0014 /* Ultra-III   */