# \[PATCH v3 11/21\] selftests/powerpc: Add transactional memory defines

- From: Cyril Bur \<hidden\>
- Date: 2016-08-17 03:44:17 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2016/08/9492156
- Thread: https://ratatoskr.run/linuxppc-dev/2016/08/9492152/t.md

```text
Signed-off-by: Cyril Bur <redacted>
---
 tools/testing/selftests/powerpc/basic_asm.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/testing/selftests/powerpc/basic_asm.h b/tools/testing/selftests/powerpc/basic_asm.h
index 3349a07..5131059 100644
--- a/tools/testing/selftests/powerpc/basic_asm.h
+++ b/tools/testing/selftests/powerpc/basic_asm.h
@@ -4,6 +4,10 @@
 #include <ppc-asm.h>
 #include <asm/unistd.h>
 
+#define TBEGIN .long 0x7C00051D
+#define TSUSPEND .long 0x7C0005DD
+#define TRESUME .long 0x7C2005DD
+
 #define LOAD_REG_IMMEDIATE(reg,expr) \
 	lis	reg,(expr)@highest;	\
 	ori	reg,reg,(expr)@higher;	\
-- 
2.9.3
```
