Re: [tip:x86/urgent] x86/boot/compressed/64: Detect and handle 5-level paging at boot-time

From: Kirill A. Shutemov
Date: Thu Dec 07 2017 - 05:47:44 EST


On Thu, Dec 07, 2017 at 01:40:42AM -0800, tip-bot for Kirill A. Shutemov wrote:
> diff --git a/arch/x86/boot/compressed/pgtable_64.c b/arch/x86/boot/compressed/pgtable_64.c
> new file mode 100644
> index 0000000..b4469a3
> --- /dev/null
> +++ b/arch/x86/boot/compressed/pgtable_64.c
> @@ -0,0 +1,28 @@
> +#include <asm/processor.h>
> +
> +/*
> + * __force_order is used by special_insns.h asm code to force instruction
> + * serialization.
> + *
> + * It is not referenced from the code, but GCC < 5 with -fPIE would fail
> + * due to an undefined symbol. Define it to make these ancient GCCs work.
> + */
> +unsigned long __force_order;

There's no need in __force_order in arch/x86/boot/compressed/pagetable.c after
the change.

--
Kirill A. Shutemov