summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/lowcore.h
diff options
context:
space:
mode:
authorMartin Schwidefsky2016-08-25 10:40:19 +0200
committerMartin Schwidefsky2016-08-29 11:04:59 +0200
commit0eab11c7e0d30de14a15ccd8269eef238321a8e1 (patch)
treee028c7fa80a9f978117f5afb26f66be5bdaf2d36 /arch/s390/include/asm/lowcore.h
parents390/time: avoid races when updating tb_update_count (diff)
downloadkernel-qcow2-linux-0eab11c7e0d30de14a15ccd8269eef238321a8e1.tar.gz
kernel-qcow2-linux-0eab11c7e0d30de14a15ccd8269eef238321a8e1.tar.xz
kernel-qcow2-linux-0eab11c7e0d30de14a15ccd8269eef238321a8e1.zip
s390/vx: allow to include vx-insn.h with .include
To make the vx-insn.h more versatile avoid cpp preprocessor macros and allow to use plain numbers for vector and general purpose register operands. With that you can emit an .include from a C file into the assembler text and then use the vx-insn macros in inline assemblies. For example: asm (".include \"asm/vx-insn.h\""); static inline void xor_vec(int x, int y, int z) { asm volatile("VX %0,%1,%2" : : "i" (x), "i" (y), "i" (z)); } Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/lowcore.h')
0 files changed, 0 insertions, 0 deletions