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:08 +0100
committerGravatar Peter Zijlstra <peterz@infradead.org> 2021-12-11 09:09:46 +0100
commitaa93e2ad7464ffb90155a5ffdde963816f86d5dc (patch)
tree345b322a089c1ca16e708ed1123555d729c5bc82 /arch/x86/include/asm/extable_fixup_types.h
parentx86/entry_64: Remove .fixup usage (diff)
downloadlinux-aa93e2ad7464ffb90155a5ffdde963816f86d5dc.tar.gz
linux-aa93e2ad7464ffb90155a5ffdde963816f86d5dc.tar.bz2
linux-aa93e2ad7464ffb90155a5ffdde963816f86d5dc.zip
x86/entry_32: Remove .fixup usage
Where possible, push the .fixup into code, at the tail of functions. This is hard for macros since they're used in multiple functions, therefore introduce a new extable handler to pop zeros. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20211110101325.245184699@infradead.org
Diffstat (limited to 'arch/x86/include/asm/extable_fixup_types.h')
-rw-r--r--arch/x86/include/asm/extable_fixup_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/extable_fixup_types.h b/arch/x86/include/asm/extable_fixup_types.h
index 409524d5d2eb..4d709a2768bb 100644
--- a/arch/x86/include/asm/extable_fixup_types.h
+++ b/arch/x86/include/asm/extable_fixup_types.h
@@ -19,4 +19,6 @@
#define EX_TYPE_DEFAULT_MCE_SAFE 12
#define EX_TYPE_FAULT_MCE_SAFE 13
+#define EX_TYPE_POP_ZERO 14
+
#endif