powerpc: Change PACA from SPRG3 to SPRG1
[linux-2.6-block.git] / arch / powerpc / include / asm / reg.h
index d17af2b3d4cefbe154a6bae1c5a62e7ad9da51bc..2cedbb427618f548d85809164317a5734cb1c0ca 100644 (file)
  * SPRG usage:
  *
  * All 64-bit:
- *     - SPRG3 stores PACA pointer
+ *     - SPRG1 stores PACA pointer
  *
  * 64-bit server:
  *     - SPRG0 unused (reserved for HV on Power4)
- *     - SPRG1 scratch for exception vectors
- *     - SPRG2 unused
+ *     - SPRG2 scratch for exception vectors
+ *     - SPRG3 unused (user visible)
  *
  * All 32-bit:
  *     - SPRG3 current thread_info pointer
  *
  */
 #ifdef CONFIG_PPC64
-#define SPRN_SPRG_PACA                 SPRN_SPRG3
+#define SPRN_SPRG_PACA                 SPRN_SPRG1
 #else
 #define SPRN_SPRG_THREAD       SPRN_SPRG3
 #endif
 
 #ifdef CONFIG_PPC_BOOK3S_64
-#define SPRN_SPRG_SCRATCH0     SPRN_SPRG1
+#define SPRN_SPRG_SCRATCH0     SPRN_SPRG2
 #endif
 
 #ifdef CONFIG_PPC_BOOK3S_32