Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / tools / testing / selftests / powerpc / tm / tm-syscall-asm.S
diff --git a/kernel/tools/testing/selftests/powerpc/tm/tm-syscall-asm.S b/kernel/tools/testing/selftests/powerpc/tm/tm-syscall-asm.S
new file mode 100644 (file)
index 0000000..431f61a
--- /dev/null
@@ -0,0 +1,27 @@
+#include <ppc-asm.h>
+#include <asm/unistd.h>
+
+       .text
+FUNC_START(getppid_tm_active)
+       tbegin.
+       beq 1f
+       li      r0, __NR_getppid
+       sc
+       tend.
+       blr
+1:
+       li      r3, -1
+       blr
+
+FUNC_START(getppid_tm_suspended)
+       tbegin.
+       beq 1f
+       li      r0, __NR_getppid
+       tsuspend.
+       sc
+       tresume.
+       tend.
+       blr
+1:
+       li      r3, -1
+       blr