| 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" |
| 11 #include "native_client/src/trusted/service_runtime/nacl_config.h" | 11 #include "native_client/src/trusted/service_runtime/nacl_config.h" |
| 12 | 12 |
| 13 /* NOTE: we hope to unify this among archtectures */ | 13 /* NOTE: we hope to unify this among archtectures */ |
| 14 #define NACL_MAX_ADDR_BITS 30 | 14 #define NACL_MAX_ADDR_BITS 30 |
| 15 | 15 |
| 16 #define NACL_ADDRSPACE_LOWER_GUARD_SIZE 0 | 16 #define NACL_ADDRSPACE_LOWER_GUARD_SIZE 0 |
| 17 #define NACL_ADDRSPACE_UPPER_GUARD_SIZE 0x2000 | 17 #define NACL_ADDRSPACE_UPPER_GUARD_SIZE 0x2000 |
| 18 | 18 |
| 19 #define NACL_THREAD_MAX 8192 /* arbitrary, can be larger */ | 19 #define NACL_THREAD_MAX 8192 /* arbitrary, can be larger */ |
| 20 | 20 |
| 21 #if defined(NACL_TARGET_ARM_THUMB2_MODE) | 21 #if defined(NACL_TARGET_ARM_THUMB2_MODE) |
| 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 0xE7FEDEFF /* UDF #0xEDEF */ |
| 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 #endif /* SERVICE_RUNTIME_ARCH_ARM_SEL_LDR_H__ */ | 32 #endif /* SERVICE_RUNTIME_ARCH_ARM_SEL_LDR_H__ */ |
| OLD | NEW |