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.
Changes in V2:
- addressed comments
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 | 353 +++++++++++++++++++++++++++++---------------------
1 file changed, 204 insertions(+), 149 deletions(-)
--
2.43.0