| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 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 /* | 7 /* |
| 8 * assume 32-byte trampoline slots, 16-byte bundles. | 8 * assume 32-byte trampoline slots, 16-byte bundles. |
| 9 */ | 9 */ |
| 10 #define GETTIMEOFDAY_ADDR 0x10500 | 10 #define GETTIMEOFDAY_ADDR 0x10500 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 ldr r2, addrOfGetTimeOfDaySyscallAddr | 25 ldr r2, addrOfGetTimeOfDaySyscallAddr |
| 26 bic r2, r2, #0xf000000f | 26 bic r2, r2, #0xf000000f |
| 27 bx r2 | 27 bx r2 |
| 28 | 28 |
| 29 eor r0, r0, #1 | 29 eor r0, r0, #1 |
| 30 bad: pop {lr} | 30 bad: pop {lr} |
| 31 bic lr, lr, #0xf000000f | 31 bic lr, lr, #0xf000000f |
| 32 bx lr | 32 bx lr |
| 33 | 33 |
| 34 | 34 |
| 35 bkpt 0x7777 | 35 bkpt 0x5be0 |
| 36 /* | 36 /* |
| 37 * Put a disallowed instruction here to ensure that the bkpt | 37 * Put a disallowed instruction here to ensure that the bkpt |
| 38 * data bundle marker works. If the marker does not work, then | 38 * data bundle marker works. If the marker does not work, then |
| 39 * whether this code passes the validator is a matter of chance. | 39 * whether this code passes the validator is a matter of chance. |
| 40 */ | 40 */ |
| 41 mov pc, r0 | 41 mov pc, r0 |
| 42 addrOfGetTimeOfDaySyscallAddr: | 42 addrOfGetTimeOfDaySyscallAddr: |
| 43 .word GETTIMEOFDAY_ADDR | 43 .word GETTIMEOFDAY_ADDR |
| 44 addrOfTimeBuf: | 44 addrOfTimeBuf: |
| 45 .word timebuf | 45 .word timebuf |
| OLD | NEW |