powerpc/64s: move the last of the page fault handling logic to C
Nicholas Piggin
reviewerPATCH 1/1 powerpc/64s: move the last of the page fault handling logic to C
The page fault handling still has some complex logic particularly around hash table handling, in asm. Implement this in C instead.
Signed-off-by Nicholas Piggin <[email protected]>
--- arch/powerpc/include/asm/bug.h | 1 + arch/powerpc/kernel/exceptions-64s.S | 131 +++++--------------------- arch/powerpc/mm/book3s64/hash_utils.c | 77 +++++++++------ arch/powerpc/mm/fault.c | 55 ++++++++++- 4 files changed, 124 insertions(+), 140 deletions(-)
arch/powerpc/include/asm/bug.h +1 -0
@@ -112,6 +112,7 @@struct pt_regs ;extern int do_page_fault (struct pt_regs *,unsigned long ,unsigned long ); +extern int hash__do_page_fault (struct pt_regs *,unsigned long ,unsigned long );extern void bad_page_fault (struct pt_regs *,unsigned long ,int );extern void _exception (int ,struct pt_regs *,int ,unsigned long );extern void _exception_pkey (struct pt_regs *,unsigned long ,int );
arch/powerpc/kernel/exceptions-64s.S +22 -109
161 lines not on this page · raw message
arch/powerpc/mm/book3s64/hash_utils.c +49 -28
105 lines not on this page · raw message
arch/powerpc/mm/fault.c +52 -3
71 lines not on this page · raw message
Signature · 1 line
2.23.0