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

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

Issue 11368024: [MIPS] Restore the trusted stack in NaClSyscallSeg. (Closed) Base URL: http://git.chromium.org/native_client/src/native_client.git@master
Patch Set: Remove saving of $gp. Created 8 years, 1 month 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/sel_rt.c
diff --git a/src/trusted/service_runtime/arch/mips/sel_rt.c b/src/trusted/service_runtime/arch/mips/sel_rt.c
index 37e0d7e68eb46e79c57e08746e9b5102a5c4a69d..37171e3070e09a740905a99e3fddb4953e1ee9a2 100644
--- a/src/trusted/service_runtime/arch/mips/sel_rt.c
+++ b/src/trusted/service_runtime/arch/mips/sel_rt.c
@@ -90,7 +90,7 @@ void NaClThreadContextToSignalContext(const struct NaClThreadContext *th_ctx,
sig_ctx->t9 = 0;
sig_ctx->k0 = 0;
sig_ctx->k1 = 0;
- sig_ctx->global_ptr = th_ctx->global_ptr;
+ sig_ctx->global_ptr = 0;
sig_ctx->stack_ptr = th_ctx->stack_ptr;
sig_ctx->frame_ptr = th_ctx->frame_ptr;
sig_ctx->return_addr = th_ctx->prog_ctr;

Powered by Google App Engine
This is Rietveld 408576698