diff options
author | Vegard Nossum <vegard.nossum@oracle.com> | 2023-12-19 18:11:57 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-12-20 12:57:20 +0300 |
commit | 41ef75c848e33beb1f7b981866b62b0066f744c7 (patch) | |
tree | 5de3805b5757b959aa377e2d45ef119d11e36fa3 /arch/x86/platform/pvh/head.S | |
parent | 016919c1f2e5b7ea3436abe6db0b73dbabd36682 (diff) | |
download | linux-41ef75c848e33beb1f7b981866b62b0066f744c7.tar.xz |
x86/asm: Replace magic numbers in GDT descriptors, preparations
We'd like to replace all the magic numbers in various GDT descriptors
with new, semantically meaningful, symbolic values.
In order to be able to verify that the change doesn't cause any actual
changes to the compiled binary code, I've split the change into two
patches:
- Part 1 (this commit): everything _but_ actually replacing the numbers
- Part 2 (the following commit): _only_ replacing the numbers
The reason we need this split for verification is that including new
headers causes some spurious changes to the object files, mostly line
number changes in the debug info but occasionally other subtle codegen
changes.
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20231219151200.2878271-3-vegard.nossum@oracle.com
Diffstat (limited to 'arch/x86/platform/pvh/head.S')
-rw-r--r-- | arch/x86/platform/pvh/head.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/platform/pvh/head.S b/arch/x86/platform/pvh/head.S index c4365a05ab83..9bcafdded2a1 100644 --- a/arch/x86/platform/pvh/head.S +++ b/arch/x86/platform/pvh/head.S @@ -11,6 +11,7 @@ #include <linux/elfnote.h> #include <linux/init.h> #include <linux/linkage.h> +#include <asm/desc_defs.h> #include <asm/segment.h> #include <asm/asm.h> #include <asm/boot.h> |