It is no longer used.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
---
CC: Jan Beulich <JBeulich@suse.com>
CC: Roger Pau Monné <roger.pau@citrix.com>
v2:
* New
---
xen/arch/x86/extable.c | 14 --------------
xen/arch/x86/include/asm/asm_defns.h | 11 ++++-------
xen/arch/x86/include/asm/uaccess.h | 2 --
xen/arch/x86/xen.lds.S | 5 -----
4 files changed, 4 insertions(+), 28 deletions(-)
diff --git a/xen/arch/x86/extable.c b/xen/arch/x86/extable.c
index cf637d0921e4..a9b6c6b904f5 100644
--- a/xen/arch/x86/extable.c
+++ b/xen/arch/x86/extable.c
@@ -61,7 +61,6 @@ void init_or_livepatch sort_exception_table(struct exception_table_entry *start,
void __init sort_exception_tables(void)
{
sort_exception_table(__start___ex_table, __stop___ex_table);
- sort_exception_table(__start___pre_ex_table, __stop___pre_ex_table);
}
static unsigned long
@@ -219,16 +218,3 @@ int __init cf_check stub_selftest(void)
}
__initcall(stub_selftest);
#endif /* CONFIG_SELF_TESTS */
-
-unsigned long asmlinkage search_pre_exception_table(struct cpu_user_regs *regs)
-{
- unsigned long addr = regs->rip;
- unsigned long fixup = search_one_extable(
- __start___pre_ex_table, __stop___pre_ex_table, addr);
- if ( fixup )
- {
- dprintk(XENLOG_INFO, "Pre-exception: %p -> %p\n", _p(addr), _p(fixup));
- perfc_incr(exception_fixed);
- }
- return fixup;
-}
diff --git a/xen/arch/x86/include/asm/asm_defns.h b/xen/arch/x86/include/asm/asm_defns.h
index a81a4043d0f1..d7eafedf0e4c 100644
--- a/xen/arch/x86/include/asm/asm_defns.h
+++ b/xen/arch/x86/include/asm/asm_defns.h
@@ -65,22 +65,19 @@ register unsigned long current_stack_pointer asm("rsp");
/* Exception table entry */
#ifdef __ASSEMBLY__
-# define _ASM__EXTABLE(sfx, from, to) \
- .section .ex_table##sfx, "a" ; \
+# define _ASM_EXTABLE(from, to) \
+ .section .ex_table, "a" ; \
.balign 4 ; \
.long _ASM_EX(from), _ASM_EX(to) ; \
.previous
#else
-# define _ASM__EXTABLE(sfx, from, to) \
- " .section .ex_table" #sfx ",\"a\"\n" \
+# define _ASM_EXTABLE(from, to) \
+ " .section .ex_table,\"a\"\n" \
" .balign 4\n" \
" .long " _ASM_EX(from) ", " _ASM_EX(to) "\n" \
" .previous\n"
#endif
-#define _ASM_EXTABLE(from, to) _ASM__EXTABLE(, from, to)
-#define _ASM_PRE_EXTABLE(from, to) _ASM__EXTABLE(.pre, from, to)
-
#ifdef __ASSEMBLY__
.macro BUILD_BUG_ON condstr, cond:vararg
diff --git a/xen/arch/x86/include/asm/uaccess.h b/xen/arch/x86/include/asm/uaccess.h
index 719d053936b9..4c41a0fe0426 100644
--- a/xen/arch/x86/include/asm/uaccess.h
+++ b/xen/arch/x86/include/asm/uaccess.h
@@ -410,8 +410,6 @@ struct exception_table_entry
};
extern struct exception_table_entry __start___ex_table[];
extern struct exception_table_entry __stop___ex_table[];
-extern struct exception_table_entry __start___pre_ex_table[];
-extern struct exception_table_entry __stop___pre_ex_table[];
union stub_exception_token {
struct {
diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S
index 966e514f2034..66075bc0ae6d 100644
--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -119,11 +119,6 @@ SECTIONS
*(.ex_table)
__stop___ex_table = .;
- /* Pre-exception table */
- __start___pre_ex_table = .;
- *(.ex_table.pre)
- __stop___pre_ex_table = .;
-
. = ALIGN(PAGE_SIZE);
__ro_after_init_end = .;
--
2.39.5