aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/extable_fixup_types.h
diff options
context:
space:
mode:
authorGravatar Peter Zijlstra <peterz@infradead.org> 2021-11-10 11:01:15 +0100
committerGravatar Peter Zijlstra <peterz@infradead.org> 2021-12-11 09:09:48 +0100
commit5fc77b916cb82fe476ae2344e0ec37445227a4f8 (patch)
tree732ca13b188a5188bd7c9d05e0cadf925345f1c8 /arch/x86/include/asm/extable_fixup_types.h
parentx86/fpu: Remove .fixup usage (diff)
downloadlinux-5fc77b916cb82fe476ae2344e0ec37445227a4f8.tar.gz
linux-5fc77b916cb82fe476ae2344e0ec37445227a4f8.tar.bz2
linux-5fc77b916cb82fe476ae2344e0ec37445227a4f8.zip
x86/segment: Remove .fixup usage
Create and use EX_TYPE_ZERO_REG to clear the register and retry the segment load on exception. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20211110101325.663529463@infradead.org
Diffstat (limited to 'arch/x86/include/asm/extable_fixup_types.h')
-rw-r--r--arch/x86/include/asm/extable_fixup_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/extable_fixup_types.h b/arch/x86/include/asm/extable_fixup_types.h
index 7469038de100..a43b8c128e74 100644
--- a/arch/x86/include/asm/extable_fixup_types.h
+++ b/arch/x86/include/asm/extable_fixup_types.h
@@ -45,5 +45,6 @@
#define EX_TYPE_IMM_REG 17 /* reg := (long)imm */
#define EX_TYPE_EFAULT_REG (EX_TYPE_IMM_REG | EX_DATA_IMM(-EFAULT))
+#define EX_TYPE_ZERO_REG (EX_TYPE_IMM_REG | EX_DATA_IMM(0))
#endif