s390/extable: move extable related functions to mm/extable.c
Just like arm64, riscv, and x86 move extable related functions to mm/extable.c. This is currently only one function, but this will change with subsequent changes. Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
d09a307fde
commit
0741ec112c
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
obj-y := init.o fault.o extmem.o mmap.o vmem.o maccess.o
|
obj-y := init.o fault.o extmem.o mmap.o vmem.o maccess.o
|
||||||
obj-y += page-states.o pageattr.o pgtable.o pgalloc.o
|
obj-y += page-states.o pageattr.o pgtable.o pgalloc.o extable.o
|
||||||
|
|
||||||
obj-$(CONFIG_CMM) += cmm.o
|
obj-$(CONFIG_CMM) += cmm.o
|
||||||
obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
|
obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
|
||||||
|
16
arch/s390/mm/extable.c
Normal file
16
arch/s390/mm/extable.c
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
|
|
||||||
|
#include <linux/extable.h>
|
||||||
|
#include <asm/extable.h>
|
||||||
|
|
||||||
|
const struct exception_table_entry *s390_search_extables(unsigned long addr)
|
||||||
|
{
|
||||||
|
const struct exception_table_entry *fixup;
|
||||||
|
size_t num;
|
||||||
|
|
||||||
|
fixup = search_exception_tables(addr);
|
||||||
|
if (fixup)
|
||||||
|
return fixup;
|
||||||
|
num = __stop_amode31_ex_table - __start_amode31_ex_table;
|
||||||
|
return search_extable(__start_amode31_ex_table, num, addr);
|
||||||
|
}
|
@ -228,18 +228,6 @@ static noinline void do_sigsegv(struct pt_regs *regs, int si_code)
|
|||||||
(void __user *)(regs->int_parm_long & __FAIL_ADDR_MASK));
|
(void __user *)(regs->int_parm_long & __FAIL_ADDR_MASK));
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct exception_table_entry *s390_search_extables(unsigned long addr)
|
|
||||||
{
|
|
||||||
const struct exception_table_entry *fixup;
|
|
||||||
size_t num;
|
|
||||||
|
|
||||||
fixup = search_exception_tables(addr);
|
|
||||||
if (fixup)
|
|
||||||
return fixup;
|
|
||||||
num = __stop_amode31_ex_table - __start_amode31_ex_table;
|
|
||||||
return search_extable(__start_amode31_ex_table, num, addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
static noinline void do_no_context(struct pt_regs *regs)
|
static noinline void do_no_context(struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
const struct exception_table_entry *fixup;
|
const struct exception_table_entry *fixup;
|
||||||
|
Loading…
Reference in New Issue
Block a user