diff options
author | Rashmica Gupta <rashmicy@gmail.com> | 2015-12-23 08:49:51 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-05-11 14:54:12 +0300 |
commit | da3ddc3b5fea695f7b2fa89c4ca17dfd529293d2 (patch) | |
tree | 2a463c39e1567a184d24dc9c18e236adb62cc68f /tools/testing/selftests/powerpc/tm/tm-signal-stack.c | |
parent | 2d59b3b25659463a24f05df367574d90b3cd7145 (diff) | |
download | linux-da3ddc3b5fea695f7b2fa89c4ca17dfd529293d2.tar.xz |
selftests/powerpc: Standardise TM calls
Currently tbegin, tend etc are written as opcodes or asm instructions. So
standardise these to asm instructions.
Signed-off-by: Rashmica Gupta <rashmicy@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/tm/tm-signal-stack.c')
-rw-r--r-- | tools/testing/selftests/powerpc/tm/tm-signal-stack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/powerpc/tm/tm-signal-stack.c b/tools/testing/selftests/powerpc/tm/tm-signal-stack.c index e44a238c1d77..1f0eb567438d 100644 --- a/tools/testing/selftests/powerpc/tm/tm-signal-stack.c +++ b/tools/testing/selftests/powerpc/tm/tm-signal-stack.c @@ -60,9 +60,9 @@ int tm_signal_stack() exit(1); asm volatile("li 1, 0 ;" /* stack ptr == NULL */ "1:" - ".long 0x7C00051D ;" /* tbegin */ + "tbegin.;" "beq 1b ;" /* retry forever */ - ".long 0x7C0005DD ; ;" /* tsuspend */ + "tsuspend.;" "ld 2, 0(1) ;" /* trigger segv" */ : : : "memory"); |