aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/reg.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/reg.h')
-rw-r--r--arch/powerpc/include/asm/reg.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h
index c8715331e1b0..6315edc205d8 100644
--- a/arch/powerpc/include/asm/reg.h
+++ b/arch/powerpc/include/asm/reg.h
@@ -652,6 +652,16 @@
652 * - SPRG2 scratch for exception vectors 652 * - SPRG2 scratch for exception vectors
653 * - SPRG3 unused (user visible) 653 * - SPRG3 unused (user visible)
654 * 654 *
655 * 64-bit embedded
656 * - SPRG0 generic exception scratch
657 * - SPRG2 TLB exception stack
658 * - SPRG3 unused (user visible)
659 * - SPRG4 unused (user visible)
660 * - SPRG6 TLB miss scratch (user visible, sorry !)
661 * - SPRG7 critical exception scratch
662 * - SPRG8 machine check exception scratch
663 * - SPRG9 debug exception scratch
664 *
655 * All 32-bit: 665 * All 32-bit:
656 * - SPRG3 current thread_info pointer 666 * - SPRG3 current thread_info pointer
657 * (virtual on BookE, physical on others) 667 * (virtual on BookE, physical on others)
@@ -705,6 +715,15 @@
705#define SPRN_SPRG_SCRATCH0 SPRN_SPRG2 715#define SPRN_SPRG_SCRATCH0 SPRN_SPRG2
706#endif 716#endif
707 717
718#ifdef CONFIG_PPC_BOOK3E_64
719#define SPRN_SPRG_MC_SCRATCH SPRN_SPRG8
720#define SPRN_SPRG_CRIT_SCRATCH SPRN_SPRG7
721#define SPRN_SPRG_DBG_SCRATCH SPRN_SPRG9
722#define SPRN_SPRG_TLB_EXFRAME SPRN_SPRG2
723#define SPRN_SPRG_TLB_SCRATCH SPRN_SPRG6
724#define SPRN_SPRG_GEN_SCRATCH SPRN_SPRG0
725#endif
726
708#ifdef CONFIG_PPC_BOOK3S_32 727#ifdef CONFIG_PPC_BOOK3S_32
709#define SPRN_SPRG_SCRATCH0 SPRN_SPRG0 728#define SPRN_SPRG_SCRATCH0 SPRN_SPRG0
710#define SPRN_SPRG_SCRATCH1 SPRN_SPRG1 729#define SPRN_SPRG_SCRATCH1 SPRN_SPRG1