Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | |
| 3 * Use of this source code is governed by a BSD-style license that can be | |
| 4 * found in the LICENSE file. | |
| 5 */ | |
| 6 | |
| 7 #include "nacl_mips_defs.h" | |
| 8 | |
| 9 /* ====================================================================== */ | |
| 10 /* Some runtime code for Mips */ | |
| 11 /* Access to tls. */ | |
| 12 /* ====================================================================== */ | |
| 13 .text | |
| 14 .align NACL_BLOCK_SHIFT | |
| 15 .global __tls_get_addr | |
| 16 | |
| 17 __tls_get_addr: | |
|
Mark Seaborn
2012/10/03 00:46:33
This function returns the thread's user thread poi
petarj
2012/10/03 16:50:01
Correct.
Mark Seaborn
2012/10/03 20:02:54
Wow, that's a long time ago! We renamed the wrong
| |
| 18 move $v0, $t8 | |
| 19 addiu $v0, $v0, 0x7000 | |
|
Mark Seaborn
2012/10/03 00:46:33
What is 0x7000 for?
petarj
2012/10/03 16:50:01
$t8 points to the start of the TLS data area. The
Mark Seaborn
2012/10/03 20:02:54
Hmm, yes, I found some references to that by searc
petarj
2012/10/05 17:26:44
The best documentation I can point you to is:
htt
| |
| 20 and $ra, $ra, JUMP_MASK | |
| 21 jr $ra | |
| 22 nop | |
| 23 | |
| OLD | NEW |