aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-07-14 16:52:56 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-08-19 20:12:32 -0400
commit063517bea114d4cb57bf582353d0a99b82775a63 (patch)
treee51f8d1e1167a87d68c13e55ec6abfb0f8601acc
parent527b3639616b21c257518ee7c26fbf05232db0c0 (diff)
powerpc: Change PACA from SPRG3 to SPRG1
This change the SPRG used to store the PACA on ppc64 from SPRG3 to SPRG1. SPRG3 is user readable on most processors and we want to use it for other things. We change the scratch SPRG used by exception vectors from SRPG1 to SPRG2. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r--arch/powerpc/include/asm/reg.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h
index d17af2b3d4ce..2cedbb427618 100644
--- a/arch/powerpc/include/asm/reg.h
+++ b/arch/powerpc/include/asm/reg.h
@@ -649,12 +649,12 @@
649 * SPRG usage: 649 * SPRG usage:
650 * 650 *
651 * All 64-bit: 651 * All 64-bit:
652 * - SPRG3 stores PACA pointer 652 * - SPRG1 stores PACA pointer
653 * 653 *
654 * 64-bit server: 654 * 64-bit server:
655 * - SPRG0 unused (reserved for HV on Power4) 655 * - SPRG0 unused (reserved for HV on Power4)
656 * - SPRG1 scratch for exception vectors 656 * - SPRG2 scratch for exception vectors
657 * - SPRG2 unused 657 * - SPRG3 unused (user visible)
658 * 658 *
659 * All 32-bit: 659 * All 32-bit:
660 * - SPRG3 current thread_info pointer 660 * - SPRG3 current thread_info pointer
@@ -700,13 +700,13 @@
700 * 700 *
701 */ 701 */
702#ifdef CONFIG_PPC64 702#ifdef CONFIG_PPC64
703#define SPRN_SPRG_PACA SPRN_SPRG3 703#define SPRN_SPRG_PACA SPRN_SPRG1
704#else 704#else
705#define SPRN_SPRG_THREAD SPRN_SPRG3 705#define SPRN_SPRG_THREAD SPRN_SPRG3
706#endif 706#endif
707 707
708#ifdef CONFIG_PPC_BOOK3S_64 708#ifdef CONFIG_PPC_BOOK3S_64
709#define SPRN_SPRG_SCRATCH0 SPRN_SPRG1 709#define SPRN_SPRG_SCRATCH0 SPRN_SPRG2
710#endif 710#endif
711 711
712#ifdef CONFIG_PPC_BOOK3S_32 712#ifdef CONFIG_PPC_BOOK3S_32