Skip to contentSkip to conversation

powerpc/64s: move the last of the page fault handling logic to C

PATCH New Nicholas Piggin 1 participant 1 message Sep 15, 2020 PowerPC

lore
Share & tools
lore

Nicholas Piggin

author reviewer
#0 lore raw

PATCH 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.

---
 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
index 338f36cd9934..d714d83bbc7c 100644
@@ -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