X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fnative_client%2Fsrc%2Funtrusted%2Fnacl%2Fnacl_read_tp.c;h=e74d648e6fb8a54c525b1ff6d02b2b670096340c;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=9ae234012de6e765554100d33817cfdacfaa1e99;hpb=d1e23c6ec4202b125fc446349b2230d4cd978d86;p=platform%2Fframework%2Fweb%2Fcrosswalk.git 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 --- 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. * - * __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) { -#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(); -#endif }