Patchwork [5/7] powerpc: Add DAWR/X SPR number definitions

login
register
mail settings
Submitter Michael Neuling
Date Dec. 21, 2012, 12:06 a.m.
Message ID <1356048405-20560-6-git-send-email-mikey@neuling.org>
Download mbox | patch
Permalink /patch/207748/
State Accepted
Commit a8190a59e7440a7e3f7c0889d72a13e157988b3c
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Michael Neuling - Dec. 21, 2012, 12:06 a.m.
Signed-off-by: Michael Neuling <mikey@neuling.org>
---
 arch/powerpc/include/asm/reg.h |    5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h
index ce7b50e..6cae32d 100644
--- a/arch/powerpc/include/asm/reg.h
+++ b/arch/powerpc/include/asm/reg.h
@@ -222,6 +222,11 @@ 
 #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)