powerpc: Add DAWR/X SPR number definitions
authorMichael Neuling <mikey@neuling.org>
Thu, 20 Dec 2012 14:06:43 +0000 (14:06 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 10 Jan 2013 06:01:41 +0000 (17:01 +1100)
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/reg.h

index 1bdba54839b47b44f78bdb242808424e85be5d37..d111beb1acdbcdc81573473f6abe8b9a1dad40e9 100644 (file)
 #define   CTRL_CT1     0x40000000      /* thread 1 */
 #define   CTRL_TE      0x00c00000      /* thread enable */
 #define   CTRL_RUNLATCH        0x1
+#define SPRN_DAWR      0xB4
+#define SPRN_DAWRX     0xBC
+#define   DAWRX_USER   (1UL << 0)
+#define   DAWRX_KERNEL (1UL << 1)
+#define   DAWRX_HYP    (1UL << 2)
 #define SPRN_DABR      0x3F5   /* Data Address Breakpoint Register */
 #define   DABR_TRANSLATION     (1UL << 2)
 #define   DABR_DATA_WRITE      (1UL << 1)