Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Unified Diff: src/untrusted/irt/irt_private_tls.c

Issue 140653005: Adds tls_edit utility which patches irt_core.nexe's TLS usage. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: gyp builds with host toolsets should not inherit target flags for arm and mips Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/untrusted/irt/irt_private_tls.c
diff --git a/src/untrusted/irt/irt_private_tls.c b/src/untrusted/irt/irt_private_tls.c
index 6948e2429a1b259cc0f0c7894077baa54ce927aa..787162be75f74671d14278563c395fd9ef6520ff 100644
--- a/src/untrusted/irt/irt_private_tls.c
+++ b/src/untrusted/irt/irt_private_tls.c
@@ -37,7 +37,7 @@ void *nacl_tls_get(void) {
* lot faster.
*/
void *result;
- __asm__("mov %%gs:4, %0" : "=r"(result));
+ __asm__("mov %%gs:0, %0" : "=r"(result));
return result;
#else
return NACL_SYSCALL(second_tls_get)();

Powered by Google App Engine
This is Rietveld 408576698