diff options
author | 2023-01-11 23:20:30 -0800 | |
---|---|---|
committer | 2023-01-12 13:06:36 +0100 | |
commit | df729fb05ae2db52f7de150439392a88ee9d9b4f (patch) | |
tree | e7ae35a5881c8d7d2bbd31e8a23b5252b1fc3c24 /arch/x86/entry | |
parent | x86/opcode: Add the LKGS instruction to x86-opcode-map (diff) | |
download | linux-df729fb05ae2db52f7de150439392a88ee9d9b4f.tar.gz linux-df729fb05ae2db52f7de150439392a88ee9d9b4f.tar.bz2 linux-df729fb05ae2db52f7de150439392a88ee9d9b4f.zip |
x86/gsseg: Make asm_load_gs_index() take an u16
Let GCC know that only the low 16 bits of load_gs_index() argument
actually matter. It might allow it to create slightly better
code. However, do not propagate this into the prototypes of functions
that end up being paravirtualized, to avoid unnecessary changes.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Xin Li <xin3.li@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230112072032.35626-4-xin3.li@intel.com
Diffstat (limited to 'arch/x86/entry')
-rw-r--r-- | arch/x86/entry/entry_64.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index 15739a2c0983..7ecd2aeeeffc 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -782,7 +782,7 @@ _ASM_NOKPROBE(common_interrupt_return) /* * Reload gs selector with exception handling - * edi: new selector + * di: new selector * * Is in entry.text as it shouldn't be instrumented. */ |