summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/ptrace.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-10-13 00:15:16 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2018-10-14 18:04:09 +1100
commit4c2de74cc8696154b283f241d74ec0bb24438e22 (patch)
tree85fe4333599db98756971f364ef4beb654abc162 /arch/powerpc/include/asm/ptrace.h
parent3eeacd9f4ea33546f272fcf131d6a11edbe3b4a6 (diff)
downloadlinux-4c2de74cc8696154b283f241d74ec0bb24438e22.tar.bz2
powerpc/64: Interrupts save PPR on stack rather than thread_struct
PPR is the odd register out when it comes to interrupt handling, it is saved in current->thread.ppr while all others are saved on the stack. The difficulty with this is that accessing thread.ppr can cause a SLB fault, but the SLB fault handler implementation in C change had assumed the normal exception entry handlers would not cause an SLB fault. Fix this by allocating room in the interrupt stack to save PPR. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/ptrace.h')
-rw-r--r--arch/powerpc/include/asm/ptrace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ptrace.h b/arch/powerpc/include/asm/ptrace.h
index 3dd15024db93..2ba2a1e52291 100644
--- a/arch/powerpc/include/asm/ptrace.h
+++ b/arch/powerpc/include/asm/ptrace.h
@@ -51,6 +51,10 @@ struct pt_regs
unsigned long result;
};
};
+
+#ifdef CONFIG_PPC64
+ unsigned long ppr;
+#endif
};
#endif