]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - arch/powerpc/include/asm/ppc-opcode.h
powerpc/bpf: Introduce __PPC_SH64()
[mirror_ubuntu-zesty-kernel.git] / arch / powerpc / include / asm / ppc-opcode.h
index c4ced1d01d579fe0b7aeb13a71b21eb2ffb7072c..d99bd442aacbe5747f605cd356de6aa3ae58e53a 100644 (file)
 #define __PPC_WC(w)    (((w) & 0x3) << 21)
 #define __PPC_WS(w)    (((w) & 0x1f) << 11)
 #define __PPC_SH(s)    __PPC_WS(s)
+#define __PPC_SH64(s)  (__PPC_SH(s) | (((s) & 0x20) >> 4))
 #define __PPC_MB(s)    (((s) & 0x1f) << 6)
 #define __PPC_ME(s)    (((s) & 0x1f) << 1)
 #define __PPC_MB64(s)  (__PPC_MB(s) | ((s) & 0x20))