Merge tag 'docs-5.3' of git://git.lwn.net/linux
[linux-2.6-block.git] / arch / x86 / boot / header.S
index 90d791ca1a954a33ddfd31607b150aab073e8300..2c11c0f45d49b402ad85c907ec9b3c9109d68ff0 100644 (file)
@@ -419,7 +419,17 @@ xloadflags:
 # define XLF4 0
 #endif
 
-                       .word XLF0 | XLF1 | XLF23 | XLF4
+#ifdef CONFIG_X86_64
+#ifdef CONFIG_X86_5LEVEL
+#define XLF56 (XLF_5LEVEL|XLF_5LEVEL_ENABLED)
+#else
+#define XLF56 XLF_5LEVEL
+#endif
+#else
+#define XLF56 0
+#endif
+
+                       .word XLF0 | XLF1 | XLF23 | XLF4 | XLF56
 
 cmdline_size:   .long   COMMAND_LINE_SIZE-1     #length of the command line,
                                                 #added with boot protocol