| 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 #include "native_client/src/include/arm_sandbox.h" | 6 #include "native_client/src/include/arm_sandbox.h" |
| 7 #include "native_client/src/trusted/service_runtime/nacl_config.h" | 7 #include "native_client/src/trusted/service_runtime/nacl_config.h" |
| 8 #include "templates.h" | 8 #include "templates.h" |
| 9 | 9 |
| 10 #define SANDBOX_MASK NACL_CONTROL_FLOW_MASK | 10 #define SANDBOX_MASK NACL_CONTROL_FLOW_MASK |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 mov r1, #MARKER_OLD & 0xff | 50 mov r1, #MARKER_OLD & 0xff |
| 51 orr r1, #MARKER_OLD & 0xff00 | 51 orr r1, #MARKER_OLD & 0xff00 |
| 52 bic lr, lr, #SANDBOX_MASK | 52 bic lr, lr, #SANDBOX_MASK |
| 53 bx lr | 53 bx lr |
| 54 template_func_nonreplacement_end: | 54 template_func_nonreplacement_end: |
| 55 | 55 |
| 56 .global hlts | 56 .global hlts |
| 57 .global hlts_end | 57 .global hlts_end |
| 58 .p2align 4 | 58 .p2align 4 |
| 59 hlts: | 59 hlts: |
| 60 .word NACL_INSTR_HALT_FILL | 60 .word NACL_INSTR_ARM_HALT_FILL |
| 61 .word NACL_INSTR_HALT_FILL | 61 .word NACL_INSTR_ARM_HALT_FILL |
| 62 .word NACL_INSTR_HALT_FILL | 62 .word NACL_INSTR_ARM_HALT_FILL |
| 63 .word NACL_INSTR_HALT_FILL | 63 .word NACL_INSTR_ARM_HALT_FILL |
| 64 hlts_end: | 64 hlts_end: |
| 65 | 65 |
| 66 | 66 |
| 67 .global branch_forwards | 67 .global branch_forwards |
| 68 .global branch_forwards_end | 68 .global branch_forwards_end |
| 69 .global branch_backwards | 69 .global branch_backwards |
| 70 .global branch_backwards_end | 70 .global branch_backwards_end |
| 71 .p2align 4 | 71 .p2align 4 |
| 72 branch_forwards: | 72 branch_forwards: |
| 73 b branch_backwards | 73 b branch_backwards |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 b external_jump_replace_return | 188 b external_jump_replace_return |
| 189 bl template_func_external_jump_target_replace | 189 bl template_func_external_jump_target_replace |
| 190 mov r0, #MARKER_STABLE & 0xff | 190 mov r0, #MARKER_STABLE & 0xff |
| 191 orr r0, #MARKER_STABLE & 0xff00 | 191 orr r0, #MARKER_STABLE & 0xff00 |
| 192 nop | 192 nop |
| 193 nop | 193 nop |
| 194 external_jump_replace_return: | 194 external_jump_replace_return: |
| 195 bic lr, lr, #SANDBOX_MASK | 195 bic lr, lr, #SANDBOX_MASK |
| 196 bx lr | 196 bx lr |
| 197 template_func_external_jump_target_replace_end: | 197 template_func_external_jump_target_replace_end: |
| OLD | NEW |