| 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 #include "native_client/src/include/arm_sandbox.h" | 7 #include "native_client/src/include/arm_sandbox.h" |
| 8 | 8 |
| 9 /* | 9 /* |
| 10 * assume 32-byte trampoline slots, 16-byte bundles. | 10 * assume 32-byte trampoline slots, 16-byte bundles. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 ldr r2, addrOfGetTimeOfDaySyscallAddr | 27 ldr r2, addrOfGetTimeOfDaySyscallAddr |
| 28 bic r2, r2, #0xf000000f | 28 bic r2, r2, #0xf000000f |
| 29 bx r2 | 29 bx r2 |
| 30 | 30 |
| 31 eor r0, r0, #1 | 31 eor r0, r0, #1 |
| 32 bad: pop {lr} | 32 bad: pop {lr} |
| 33 bic lr, lr, #0xf000000f | 33 bic lr, lr, #0xf000000f |
| 34 bx lr | 34 bx lr |
| 35 | 35 |
| 36 | 36 |
| 37 .word NACL_INSTR_LITERAL_POOL_HEAD | 37 .word NACL_INSTR_ARM_LITERAL_POOL_HEAD |
| 38 /* | 38 /* |
| 39 * Put a disallowed instruction here to ensure that the bkpt | 39 * Put a disallowed instruction here to ensure that the bkpt |
| 40 * data bundle marker works. If the marker does not work, then | 40 * data bundle marker works. If the marker does not work, then |
| 41 * whether this code passes the validator is a matter of chance. | 41 * whether this code passes the validator is a matter of chance. |
| 42 */ | 42 */ |
| 43 mov pc, r0 | 43 mov pc, r0 |
| 44 addrOfGetTimeOfDaySyscallAddr: | 44 addrOfGetTimeOfDaySyscallAddr: |
| 45 .word GETTIMEOFDAY_ADDR | 45 .word GETTIMEOFDAY_ADDR |
| 46 addrOfTimeBuf: | 46 addrOfTimeBuf: |
| 47 .word timebuf | 47 .word timebuf |
| OLD | NEW |