x86/asm: Carve out a generic movdir64b() helper for general usage
authorDave Jiang <dave.jiang@intel.com>
Mon, 5 Oct 2020 15:11:22 +0000 (08:11 -0700)
committerBorislav Petkov <bp@suse.de>
Wed, 7 Oct 2020 15:49:25 +0000 (17:49 +0200)
commit0888e1030d3e3e5ce9dfd8e030cf13a2e9a1519a
tree4d205801af64e20f20ae3aa904355b02d8644a87
parent20f0afd1fb3d7d44f4a3db5a4b6e904410862140
x86/asm: Carve out a generic movdir64b() helper for general usage

Carve out the MOVDIR64B inline asm primitive into a generic helper so
that it can be used by other functions. Move it to special_insns.h and
have iosubmit_cmds512() call it.

 [ bp: Massage commit message. ]

Suggested-by: Michael Matz <matz@suse.de>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20201005151126.657029-2-dave.jiang@intel.com
arch/x86/include/asm/io.h
arch/x86/include/asm/special_insns.h