diff options
author | Simon Guo <wei.guo.simon@gmail.com> | 2018-05-23 15:01:45 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-05-24 16:03:36 +1000 |
commit | ab3759b5734544dd1430527c3d89730990cfa4bb (patch) | |
tree | 50107fa7fb56950c7195bd9027f7444fa0725adb /arch/powerpc/platforms | |
parent | d1c7211281c5e1799f00b2228157530e0f7a671c (diff) | |
download | blackbird-op-linux-ab3759b5734544dd1430527c3d89730990cfa4bb.tar.gz blackbird-op-linux-ab3759b5734544dd1430527c3d89730990cfa4bb.zip |
powerpc/reg: Add TEXASR related macros
This patches add some macros for CR0/TEXASR bits so that PR KVM TM
logic (tbegin./treclaim./tabort.) can make use of them later.
Signed-off-by: Simon Guo <wei.guo.simon@gmail.com>
Reviewed-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/powernv/copy-paste.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powernv/copy-paste.h b/arch/powerpc/platforms/powernv/copy-paste.h index c9a503623431..3fa62de96d9c 100644 --- a/arch/powerpc/platforms/powernv/copy-paste.h +++ b/arch/powerpc/platforms/powernv/copy-paste.h @@ -7,9 +7,8 @@ * 2 of the License, or (at your option) any later version. */ #include <asm/ppc-opcode.h> +#include <asm/reg.h> -#define CR0_SHIFT 28 -#define CR0_MASK 0xF /* * Copy/paste instructions: * |