summaryrefslogtreecommitdiffstats
path: root/lib/libc/powerpc64/gen/_set_tp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/powerpc64/gen/_set_tp.c')
-rw-r--r--lib/libc/powerpc64/gen/_set_tp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/powerpc64/gen/_set_tp.c b/lib/libc/powerpc64/gen/_set_tp.c
index 9adb6a5..32137e5 100644
--- a/lib/libc/powerpc64/gen/_set_tp.c
+++ b/lib/libc/powerpc64/gen/_set_tp.c
@@ -29,7 +29,6 @@
void
_set_tp(void *tpval)
{
- register void *tp __asm__("r13");
- __asm __volatile("mr %0,%1" : "=r"(tp) : "r"((char*)tpval + 0x7010));
+ __asm __volatile("mr 13,%0" :: "r"((char*)tpval + 0x7010));
}
OpenPOWER on IntegriCloud