]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/boot/32: De-uglify the 2/3 level paging difference in mk_early_pgtbl_32()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 17 Oct 2023 21:23:26 +0000 (23:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2025 08:55:03 +0000 (09:55 +0100)
commitfa23256c09f00c5b3bd7b0ad57acd7bdb7206dd3
tree90358b3ca536f8a195eac87e48b492f8bc353edf
parent5b10ecbadbaad97b24875a21d19224e33a0dd62d
x86/boot/32: De-uglify the 2/3 level paging difference in mk_early_pgtbl_32()

commit a62f4ca106fd250e9247decd100f3905131fc1fe upstream

Move the ifdeffery out of the function and use proper typedefs to make it
work for both 2 and 3 level paging.

No functional change.

  [ bp: Move mk_early_pgtbl_32() declaration into a header. ]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20231017211722.111059491@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/setup.h
arch/x86/kernel/head32.c