| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009 The Native Client Authors. All rights reserved. | 2 * Copyright 2009 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 |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_SEL_RT_H__ | 7 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_SEL_RT_H__ |
| 8 #define NATIVE_CLIENT_SERVICE_RUNTIME_SEL_RT_H__ 1 | 8 #define NATIVE_CLIENT_SERVICE_RUNTIME_SEL_RT_H__ 1 |
| 9 | 9 |
| 10 #include "native_client/src/include/nacl_base.h" | 10 #include "native_client/src/include/nacl_base.h" |
| 11 | 11 |
| 12 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 | 12 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 |
| 13 #include "native_client/src/trusted/service_runtime/arch/x86/sel_rt.h" | 13 #include "native_client/src/trusted/service_runtime/arch/x86/sel_rt.h" |
| 14 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_arm | 14 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_arm |
| 15 #include "native_client/src/trusted/service_runtime/arch/arm/sel_rt.h" | 15 #include "native_client/src/trusted/service_runtime/arch/arm/sel_rt.h" |
| 16 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_mips |
| 17 #include "native_client/src/trusted/service_runtime/arch/mips/sel_rt.h" |
| 16 #else | 18 #else |
| 17 #error Unknown platform! | 19 #error Unknown platform! |
| 18 #endif | 20 #endif |
| 19 | 21 |
| 20 EXTERN_C_BEGIN | 22 EXTERN_C_BEGIN |
| 21 | 23 |
| 22 struct NaClApp; | 24 struct NaClApp; |
| 23 struct NaClSignalContext; | 25 struct NaClSignalContext; |
| 24 | 26 |
| 25 void NaClInitGlobals(); | 27 void NaClInitGlobals(); |
| 26 | 28 |
| 27 uintptr_t NaClGetThreadCtxSp(struct NaClThreadContext *th_ctx); | 29 uintptr_t NaClGetThreadCtxSp(struct NaClThreadContext *th_ctx); |
| 28 | 30 |
| 29 void NaClSetThreadCtxSp(struct NaClThreadContext *th_ctx, uintptr_t sp); | 31 void NaClSetThreadCtxSp(struct NaClThreadContext *th_ctx, uintptr_t sp); |
| 30 | 32 |
| 31 void NaClThreadContextToSignalContext(const struct NaClThreadContext *th_ctx, | 33 void NaClThreadContextToSignalContext(const struct NaClThreadContext *th_ctx, |
| 32 struct NaClSignalContext *sig_ctx); | 34 struct NaClSignalContext *sig_ctx); |
| 33 | 35 |
| 34 EXTERN_C_END | 36 EXTERN_C_END |
| 35 | 37 |
| 36 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_SEL_RT_H__ */ | 38 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_SEL_RT_H__ */ |
| OLD | NEW |