OLD | NEW |
---|---|
(Empty) | |
1 /* | |
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 | |
4 * found in the LICENSE file. | |
5 */ | |
6 | |
7 /* @file | |
Mark Seaborn
2012/10/18 22:05:30
We don't support Doxygen any more -- you can omit
| |
8 * | |
9 * Minimal ARM sandbox constants. | |
10 * | |
11 * These constants are used in C code as well as assembly, hence the use of | |
12 * the preprocessor. | |
13 */ | |
14 | |
15 #ifndef NATIVE_CLIENT_SRC_INCLUDE_ARM_SANDBOX_H_ | |
16 #define NATIVE_CLIENT_SRC_INCLUDE_ARM_SANDBOX_H_ 1 | |
17 | |
18 // Specially chosen BKPT and UDF instructions that also correspond to | |
Mark Seaborn
2012/10/18 22:05:30
Please use C-style comments
| |
19 // BKPT and UDF when decoded as Thumb instructions. | |
20 // - BKPT #0x5BE0 is used as literal pool head. | |
21 // - BKPT #0x5BEF is used as generic breakpoint. | |
22 // - UDF #0xEDEF is used as halt-fill. | |
23 // - UDF #0xEDE0 is used as abort-now (such as __builtin_trap). | |
24 // - UDF #0xEDE1 is used to always fail validation. | |
25 // All other BKPT/UDF values are disallowed by the validator out of paranoia. | |
26 #define NACL_INSTR_LITERAL_POOL_HEAD 0xE125BE70 | |
27 #define NACL_INSTR_BREAKPOINT 0xE125BE7F | |
28 #define NACL_INSTR_HALT_FILL 0xE7FEDEFF | |
29 #define NACL_INSTR_ABORT_NOW 0xE7FEDEF0 | |
30 #define NACL_INSTR_FAIL_VALIDATION 0xE7FEDEF1 | |
31 | |
32 #endif /* NATIVE_CLIENT_SRC_INCLUDE_ARM_SANDBOX_H_ */ | |
OLD | NEW |