mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
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>
This commit is contained in:
committed by
Alexander Gordeev
parent
ae02615b7f
commit
1d7a9719ba
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user