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

Unified Diff: src/trusted/service_runtime/arch/mips/nacl_tls.c

Issue 1536713003: [MIPS] Make $t8 point to the address of TLS pointers (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Move EditMipsCode() below EditArmCode(). Created 4 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/trusted/service_runtime/arch/mips/nacl_tls.c
diff --git a/src/trusted/service_runtime/arch/mips/nacl_tls.c b/src/trusted/service_runtime/arch/mips/nacl_tls.c
index 1e2e1a89d956e7c6045ec51816df00d22436e956..fac993a661a61cc3dd3792fecee55d9ea914559b 100644
--- a/src/trusted/service_runtime/arch/mips/nacl_tls.c
+++ b/src/trusted/service_runtime/arch/mips/nacl_tls.c
@@ -108,7 +108,7 @@ void NaClTlsFree(struct NaClAppThread *natp) {
uint32_t idx = NaClGetThreadIdx(natp);
NaClLog(2,
"NaClTlsFree: old idx %d $tp %x\n",
- idx, natp->user.t8);
+ idx, natp->user.tls_value1);
NaClXMutexLock(&gNaClTlsMu);
gNaClThreadIdxInUse[idx - 1] = 0;
@@ -119,7 +119,7 @@ void NaClTlsFree(struct NaClAppThread *natp) {
void NaClTlsSetTlsValue1(struct NaClAppThread *natp, uint32_t value) {
- natp->user.t8 = value;
+ natp->user.tls_value1 = value;
}
@@ -129,7 +129,7 @@ void NaClTlsSetTlsValue2(struct NaClAppThread *natp, uint32_t value) {
uint32_t NaClTlsGetTlsValue1(struct NaClAppThread *natp) {
- return natp->user.t8;
+ return natp->user.tls_value1;
}
« no previous file with comments | « src/trusted/service_runtime/arch/mips/nacl_syscall.S ('k') | src/trusted/service_runtime/arch/mips/sel_rt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698