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 SERVICE_RUNTIME_ARCH_ARM_SEL_LDR_H__ | 7 #ifndef SERVICE_RUNTIME_ARCH_ARM_SEL_LDR_H__ |
8 #define SERVICE_RUNTIME_ARCH_ARM_SEL_LDR_H__ 1 | 8 #define SERVICE_RUNTIME_ARCH_ARM_SEL_LDR_H__ 1 |
9 | 9 |
10 #include "native_client/src/include/portability.h" | 10 #include "native_client/src/include/portability.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #define NACL_NOOP_OPCODE 0x46c0 /* mov r8, r8 */ | 22 #define NACL_NOOP_OPCODE 0x46c0 /* mov r8, r8 */ |
23 #define NACL_HALT_OPCODE 0xbe00 /* bkpt 0x0000 */ | 23 #define NACL_HALT_OPCODE 0xbe00 /* bkpt 0x0000 */ |
24 #define NACL_HALT_LEN 2 /* length of halt instruction */ | 24 #define NACL_HALT_LEN 2 /* length of halt instruction */ |
25 #else | 25 #else |
26 #define NACL_NOOP_OPCODE 0xe1a00000 /* mov r0, r0 */ | 26 #define NACL_NOOP_OPCODE 0xe1a00000 /* mov r0, r0 */ |
27 #define NACL_HALT_OPCODE 0xe1266676 /* bkpt 6666 */ | 27 #define NACL_HALT_OPCODE 0xe1266676 /* bkpt 6666 */ |
28 #define NACL_HALT_LEN 4 /* length of halt instruction */ | 28 #define NACL_HALT_LEN 4 /* length of halt instruction */ |
29 #endif /* defined(NACL_TARGET_ARM_THUMB2_MODE) */ | 29 #endif /* defined(NACL_TARGET_ARM_THUMB2_MODE) */ |
30 #define NACL_HALT_WORD NACL_HALT_OPCODE | 30 #define NACL_HALT_WORD NACL_HALT_OPCODE |
31 | 31 |
32 struct NaClApp; | |
33 struct NaClThreadContext; | |
34 | |
35 uint32_t NaClGetThreadCombinedDescriptor(struct NaClThreadContext *user); | |
36 | |
37 void NaClSetThreadCombinedDescriptor(struct NaClThreadContext *user, | |
38 uint32_t tls_idx); | |
39 | |
40 #endif /* SERVICE_RUNTIME_ARCH_ARM_SEL_LDR_H__ */ | 32 #endif /* SERVICE_RUNTIME_ARCH_ARM_SEL_LDR_H__ */ |
OLD | NEW |