| 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 #include <float.h> | 7 #include <float.h> |
| 8 | 8 |
| 9 #include "native_client/src/include/build_config.h" | 9 #include "native_client/src/include/build_config.h" |
| 10 | 10 |
| 11 #if NACL_WINDOWS | 11 #if NACL_WINDOWS |
| 12 /* | 12 /* |
| 13 * This header declares the _mm_getcsr function. | 13 * This header declares the _mm_getcsr function. |
| 14 */ | 14 */ |
| 15 #include <mmintrin.h> | 15 #include <intrin.h> |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 #include "native_client/src/shared/platform/nacl_log.h" | 18 #include "native_client/src/shared/platform/nacl_log.h" |
| 19 #include "native_client/src/trusted/service_runtime/nacl_app_thread.h" | 19 #include "native_client/src/trusted/service_runtime/nacl_app_thread.h" |
| 20 #include "native_client/src/trusted/service_runtime/nacl_signal.h" | 20 #include "native_client/src/trusted/service_runtime/nacl_signal.h" |
| 21 #include "native_client/src/trusted/service_runtime/nacl_tls.h" | 21 #include "native_client/src/trusted/service_runtime/nacl_tls.h" |
| 22 #include "native_client/src/trusted/service_runtime/sel_ldr.h" | 22 #include "native_client/src/trusted/service_runtime/sel_ldr.h" |
| 23 #include "native_client/src/trusted/service_runtime/sel_rt.h" | 23 #include "native_client/src/trusted/service_runtime/sel_rt.h" |
| 24 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" | 24 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" |
| 25 #include "native_client/src/trusted/cpu_features/arch/x86/cpu_x86.h" | 25 #include "native_client/src/trusted/cpu_features/arch/x86/cpu_x86.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 } | 150 } |
| 151 | 151 |
| 152 | 152 |
| 153 void NaClSignalContextUnsetClobberedRegisters( | 153 void NaClSignalContextUnsetClobberedRegisters( |
| 154 struct NaClSignalContext *sig_ctx) { | 154 struct NaClSignalContext *sig_ctx) { |
| 155 sig_ctx->eax = 0; | 155 sig_ctx->eax = 0; |
| 156 sig_ctx->ecx = 0; | 156 sig_ctx->ecx = 0; |
| 157 sig_ctx->edx = 0; | 157 sig_ctx->edx = 0; |
| 158 sig_ctx->flags = 0; | 158 sig_ctx->flags = 0; |
| 159 } | 159 } |
| OLD | NEW |