projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git]
/
src
/
native_client
/
src
/
untrusted
/
nacl
/
nacl_read_tp.c
diff --git
a/src/native_client/src/untrusted/nacl/nacl_read_tp.c
b/src/native_client/src/untrusted/nacl/nacl_read_tp.c
index
9ae2340
..
e74d648
100644
(file)
--- a/
src/native_client/src/untrusted/nacl/nacl_read_tp.c
+++ b/
src/native_client/src/untrusted/nacl/nacl_read_tp.c
@@
-12,23
+12,8
@@
* The compiler generates calls to __nacl_read_tp() for TLS accesses.
* This is primarily used for x86-64. See src/untrusted/nacl/tls.h.
*
* The compiler generates calls to __nacl_read_tp() for TLS accesses.
* This is primarily used for x86-64. See src/untrusted/nacl/tls.h.
*
- * __nacl_read_tp() is also used on x86-32 when compiling with
- * "-mtls-use-call". This is for when TLS accesses need to be
- * virtualised -- specifically, for object files that might get linked
- * into the integrated runtime (IRT) library.
- *
* NOTE: In the glibc build, this is defined in ld.so rather than here.
*/
void *__nacl_read_tp(void) {
* NOTE: In the glibc build, this is defined in ld.so rather than here.
*/
void *__nacl_read_tp(void) {
-#if defined(__i386__)
- /*
- * Calling nacl_tls_get() works on x86-32, but reading %gs:0 is a
- * lot faster.
- */
- void *result;
- __asm__("mov %%gs:0, %0" : "=r"(result));
- return result;
-#else
return nacl_tls_get();
return nacl_tls_get();
-#endif
}
}