| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 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 be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * 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" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 sig_ctx->t8 = th_ctx->t8; | 76 sig_ctx->t8 = th_ctx->t8; |
| 77 sig_ctx->t9 = 0; | 77 sig_ctx->t9 = 0; |
| 78 sig_ctx->k0 = 0; | 78 sig_ctx->k0 = 0; |
| 79 sig_ctx->k1 = 0; | 79 sig_ctx->k1 = 0; |
| 80 sig_ctx->global_ptr = 0; | 80 sig_ctx->global_ptr = 0; |
| 81 sig_ctx->stack_ptr = th_ctx->stack_ptr; | 81 sig_ctx->stack_ptr = th_ctx->stack_ptr; |
| 82 sig_ctx->frame_ptr = th_ctx->frame_ptr; | 82 sig_ctx->frame_ptr = th_ctx->frame_ptr; |
| 83 sig_ctx->prog_ctr = th_ctx->new_prog_ctr; | 83 sig_ctx->prog_ctr = th_ctx->new_prog_ctr; |
| 84 sig_ctx->return_addr = 0; | 84 sig_ctx->return_addr = 0; |
| 85 } | 85 } |
| 86 |
| 87 |
| 88 void NaClSignalContextUnsetClobberedRegisters( |
| 89 struct NaClSignalContext *sig_ctx) { |
| 90 sig_ctx->zero = 0; |
| 91 sig_ctx->at = 0; |
| 92 sig_ctx->v0 = 0; |
| 93 sig_ctx->v1 = 0; |
| 94 sig_ctx->a0 = 0; |
| 95 sig_ctx->a1 = 0; |
| 96 sig_ctx->a2 = 0; |
| 97 sig_ctx->a3 = 0; |
| 98 sig_ctx->t0 = 0; |
| 99 sig_ctx->t1 = 0; |
| 100 sig_ctx->t2 = 0; |
| 101 sig_ctx->t3 = 0; |
| 102 sig_ctx->t4 = 0; |
| 103 sig_ctx->t5 = 0; |
| 104 sig_ctx->t9 = 0; |
| 105 sig_ctx->k0 = 0; |
| 106 sig_ctx->k1 = 0; |
| 107 sig_ctx->global_ptr = 0; |
| 108 sig_ctx->return_addr = 0; |
| 109 } |
| OLD | NEW |