Rev 1113 | Rev 1129 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1113 | Rev 1120 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
- | 29 | /* TLS for MIPS is described in http://www.linux-mips.org/wiki/NPTL */ |
|
- | 30 | ||
29 | #ifndef __LIBC__mips32THREAD_H__ |
31 | #ifndef __LIBC__mips32THREAD_H__ |
30 | #define __LIBC__mips32THREAD_H__ |
32 | #define __LIBC__mips32THREAD_H__ |
31 | 33 | ||
32 | - | ||
33 | static inline void __tls_set(void *tls) |
34 | static inline void __tls_set(void *tls) |
34 | { |
35 | { |
35 | __asm__ volatile ("add $27, %0, $0" : : "r"(tls)); /* Move tls to K1 */ |
36 | __asm__ volatile ("add $27, %0, $0" : : "r"(tls)); /* Move tls to K1 */ |
36 | } |
37 | } |
37 | 38 |