summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2025-01-10 11:52:18 +0100
committerAlexander Gordeev <agordeev@linux.ibm.com>2025-01-26 17:24:04 +0100
commit1d7a9719ba2dacac866bfa4fd17212d4dfc03bbe (patch)
tree2dfd5ce1650e0b43a698019a83d1abb470b78487
parentae02615b7fcea9ce9a4ec40b3c5b5dafd322b179 (diff)
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>
-rw-r--r--arch/s390/mm/extable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/mm/extable.c b/arch/s390/mm/extable.c
index 812ec5be1291..6e9a5e366ff3 100644
--- a/arch/s390/mm/extable.c
+++ b/arch/s390/mm/extable.c
@@ -7,6 +7,7 @@
#include <linux/panic.h>
#include <asm/asm-extable.h>
#include <asm/extable.h>
+#include <asm/fpu.h>
const struct exception_table_entry *s390_search_extables(unsigned long addr)
{
@@ -79,7 +80,7 @@ static bool ex_handler_zeropad(const struct exception_table_entry *ex, struct pt
static bool ex_handler_fpc(const struct exception_table_entry *ex, struct pt_regs *regs)
{
- asm volatile("sfpc %[val]\n" : : [val] "d" (0));
+ fpu_sfpc(0);
regs->psw.addr = extable_fixup(ex);
return true;
}