Commit 6b51311c authored by Borislav Petkov's avatar Borislav Petkov Committed by Ingo Molnar

x86/asm/entry/64: Use a define for an invalid segment selector

... instead of a naked number, for better readability.
Signed-off-by: default avatarBorislav Petkov <>
Cc: Alexei Starovoitov <>
Cc: Andy Lutomirski <>
Cc: Denys Vlasenko <>
Cc: Frederic Weisbecker <>
Cc: H. Peter Anvin <>
Cc: Kees Cook <>
Cc: Linus Torvalds <>
Cc: Oleg Nesterov <>
Cc: Steven Rostedt <>
Cc: Will Drewry <>
Link: default avatarIngo Molnar <>
parent 7c74d5b7
......@@ -39,6 +39,8 @@
/* ... GDT has it cleared */
#define SEGMENT_GDT 0x0
#ifdef CONFIG_X86_32
* The layout of the per-CPU GDT under Linux:
......@@ -1184,7 +1184,7 @@ void syscall_init(void)
wrmsrl_safe(MSR_IA32_SYSENTER_EIP, (u64)ia32_sysenter_target);
wrmsrl(MSR_CSTAR, ignore_sysret);
wrmsrl_safe(MSR_IA32_SYSENTER_CS, 0ULL);
wrmsrl_safe(MSR_IA32_SYSENTER_ESP, 0ULL);
wrmsrl_safe(MSR_IA32_SYSENTER_EIP, 0ULL);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment