OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * be found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /* | 7 /* |
8 * NaCl Secure Runtime | 8 * NaCl Secure Runtime |
9 */ | 9 */ |
10 #include "native_client/src/include/portability_string.h" | 10 #include "native_client/src/include/portability_string.h" |
11 #include "native_client/src/trusted/service_runtime/nacl_signal.h" | 11 #include "native_client/src/trusted/service_runtime/nacl_signal.h" |
12 #include "native_client/src/trusted/service_runtime/sel_ldr.h" | 12 #include "native_client/src/trusted/service_runtime/sel_ldr.h" |
13 #include "native_client/src/trusted/service_runtime/sel_rt.h" | 13 #include "native_client/src/trusted/service_runtime/sel_rt.h" |
14 #include "native_client/src/trusted/service_runtime/arch/mips/sel_ldr_mips.h" | 14 #include "native_client/src/trusted/service_runtime/arch/mips/sel_ldr_mips.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 sig_ctx->s2 = th_ctx->s2; | 83 sig_ctx->s2 = th_ctx->s2; |
84 sig_ctx->s3 = th_ctx->s3; | 84 sig_ctx->s3 = th_ctx->s3; |
85 sig_ctx->s4 = th_ctx->s4; | 85 sig_ctx->s4 = th_ctx->s4; |
86 sig_ctx->s5 = th_ctx->s5; | 86 sig_ctx->s5 = th_ctx->s5; |
87 sig_ctx->s6 = th_ctx->s6; | 87 sig_ctx->s6 = th_ctx->s6; |
88 sig_ctx->s7 = th_ctx->s7; | 88 sig_ctx->s7 = th_ctx->s7; |
89 sig_ctx->t8 = th_ctx->t8; | 89 sig_ctx->t8 = th_ctx->t8; |
90 sig_ctx->t9 = 0; | 90 sig_ctx->t9 = 0; |
91 sig_ctx->k0 = 0; | 91 sig_ctx->k0 = 0; |
92 sig_ctx->k1 = 0; | 92 sig_ctx->k1 = 0; |
93 sig_ctx->global_ptr = th_ctx->global_ptr; | 93 sig_ctx->global_ptr = 0; |
94 sig_ctx->stack_ptr = th_ctx->stack_ptr; | 94 sig_ctx->stack_ptr = th_ctx->stack_ptr; |
95 sig_ctx->frame_ptr = th_ctx->frame_ptr; | 95 sig_ctx->frame_ptr = th_ctx->frame_ptr; |
96 sig_ctx->return_addr = th_ctx->prog_ctr; | 96 sig_ctx->return_addr = th_ctx->prog_ctr; |
97 } | 97 } |
OLD | NEW |