Skip to content

Commit 1d7a971

Browse files
hcahcaAlexander Gordeev
authored andcommitted
s390/extable: Replace open-coded sfpc inline assembly with fpu_sfpc()
Use fpc_sfpc() instead of open-coding. Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
1 parent ae02615 commit 1d7a971

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/s390/mm/extable.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <linux/panic.h>
88
#include <asm/asm-extable.h>
99
#include <asm/extable.h>
10+
#include <asm/fpu.h>
1011

1112
const struct exception_table_entry *s390_search_extables(unsigned long addr)
1213
{
@@ -79,7 +80,7 @@ static bool ex_handler_zeropad(const struct exception_table_entry *ex, struct pt
7980

8081
static bool ex_handler_fpc(const struct exception_table_entry *ex, struct pt_regs *regs)
8182
{
82-
asm volatile("sfpc %[val]\n" : : [val] "d" (0));
83+
fpu_sfpc(0);
8384
regs->psw.addr = extable_fixup(ex);
8485
return true;
8586
}

0 commit comments

Comments
 (0)