about summary refs log tree commit diff
path: root/src/thread
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-10-18 22:01:24 -0400
committerRich Felker <dalias@aerifal.cx>2012-10-18 22:01:24 -0400
commit1f485230df7a1c634fcec29d870d2566aee2031c (patch)
tree75b1e5989038d07979ee94b8a4f29da5cc7fbe43 /src/thread
parent64251d8bbd42b50b6c2dae70d499f4bbfdac557e (diff)
downloadmusl-1f485230df7a1c634fcec29d870d2566aee2031c.tar.gz
musl-1f485230df7a1c634fcec29d870d2566aee2031c.tar.xz
musl-1f485230df7a1c634fcec29d870d2566aee2031c.zip
ensure microblaze __set_thread_area returns success
since it did not set the return-value register, the caller could
wrongly interpret this as failure.
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/microblaze/__set_thread_area.s3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/thread/microblaze/__set_thread_area.s b/src/thread/microblaze/__set_thread_area.s
index 2b112ae2..21dc1e1f 100644
--- a/src/thread/microblaze/__set_thread_area.s
+++ b/src/thread/microblaze/__set_thread_area.s
@@ -1,5 +1,6 @@
 .global __set_thread_area
 .type   __set_thread_area,@function
 __set_thread_area:
-	rtsd     r15, 8
 	ori      r21, r5, 0
+	rtsd     r15, 8
+	ori      r3, r0, 0