Instead of open coding a page table walk multiple times, use a generic
page table walker instead.
This new page table walker will be used later for kexec support, too.
Juergen Gross (3):
mini-os: mm: introduce generic page table walk function
mini-os: mm: switch need_pgt() to use walk_pt()
mini-os: mm: convert set_readonly() to use walk_pt()
arch/x86/mm.c | 337 ++++++++++++++++++++++++++++----------------------
1 file changed, 187 insertions(+), 150 deletions(-)
--
2.43.0