| 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 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ | 7 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ |
| 8 #define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ 1 | 8 #define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ 1 |
| 9 | 9 |
| 10 /* | 10 /* |
| 11 * The nacl_signal module provides a platform independent mechanism for | 11 * The nacl_signal module provides a platform independent mechanism for |
| 12 * trapping signals encountered while running a Native Client executable. | 12 * trapping signals encountered while running a Native Client executable. |
| 13 * Signal handlers can be installed which will receive a POSIX signal number | 13 * Signal handlers can be installed which will receive a POSIX signal number |
| 14 * and a platform dependent signal object. Accessors are provided to convert | 14 * and a platform dependent signal object. Accessors are provided to convert |
| 15 * to and from architecture dependent CPU state structures. | 15 * to and from architecture dependent CPU state structures. |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 #include "native_client/src/include/nacl_base.h" | 18 #include "native_client/src/include/nacl_base.h" |
| 19 | 19 |
| 20 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 | 20 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 |
| 21 #if NACL_BUILD_SUBARCH == 32 | 21 #if NACL_BUILD_SUBARCH == 32 |
| 22 #include "native_client/src/trusted/service_runtime/arch/x86_32/nacl_signal_
32.h" | 22 #include "native_client/src/trusted/service_runtime/arch/x86_32/nacl_signal_
32.h" |
| 23 #elif NACL_BUILD_SUBARCH == 64 | 23 #elif NACL_BUILD_SUBARCH == 64 |
| 24 #include "native_client/src/trusted/service_runtime/arch/x86_64/nacl_signal_
64.h" | 24 #include "native_client/src/trusted/service_runtime/arch/x86_64/nacl_signal_
64.h" |
| 25 #else | 25 #else |
| 26 #error "Woe to the service runtime. Is it running on a 128-bit machine?!?" | 26 #error "Woe to the service runtime. Is it running on a 128-bit machine?!?" |
| 27 #endif | 27 #endif |
| 28 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_arm | 28 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_arm |
| 29 #include "native_client/src/trusted/service_runtime/arch/arm/nacl_signal_arm.h
" | 29 #include "native_client/src/trusted/service_runtime/arch/arm/nacl_signal_arm.h
" |
| 30 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_mips |
| 31 #include "native_client/src/trusted/service_runtime/arch/mips/nacl_signal_mips
.h" |
| 30 #else | 32 #else |
| 31 #error Unknown platform! | 33 #error Unknown platform! |
| 32 #endif | 34 #endif |
| 33 | 35 |
| 34 | 36 |
| 35 EXTERN_C_BEGIN | 37 EXTERN_C_BEGIN |
| 36 | 38 |
| 37 struct NaClApp; | 39 struct NaClApp; |
| 38 struct NaClAppThread; | 40 struct NaClAppThread; |
| 39 | 41 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 const x86_thread_state_t *src); | 196 const x86_thread_state_t *src); |
| 195 void NaClSignalContextToMacThreadState(x86_thread_state_t *dest, | 197 void NaClSignalContextToMacThreadState(x86_thread_state_t *dest, |
| 196 const struct NaClSignalContext *src); | 198 const struct NaClSignalContext *src); |
| 197 | 199 |
| 198 #endif | 200 #endif |
| 199 | 201 |
| 200 | 202 |
| 201 EXTERN_C_END | 203 EXTERN_C_END |
| 202 | 204 |
| 203 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ */ | 205 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ */ |
| OLD | NEW |