| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 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/include/bits/nacl_syscalls.h
" | 7 #include "native_client/src/trusted/service_runtime/include/bits/nacl_syscalls.h
" |
| 8 #include "native_client/src/trusted/service_runtime/nacl_config.h" | 8 #include "native_client/src/trusted/service_runtime/nacl_config.h" |
| 9 | 9 |
| 10 /* the macros below are used with movw/movt and absolute values */ | 10 /* the macros below are used with movw/movt and absolute values */ |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 nop | 217 nop |
| 218 | 218 |
| 219 nop | 219 nop |
| 220 nop | 220 nop |
| 221 bic r3, r3, #0xc000000f | 221 bic r3, r3, #0xc000000f |
| 222 blx r3 | 222 blx r3 |
| 223 #if defined(PNACL_AS) | 223 #if defined(PNACL_AS) |
| 224 /* NOTE: unlike x86 the alignment directive on ARM takes | 224 /* NOTE: unlike x86 the alignment directive on ARM takes |
| 225 the logarithm of the alignment */ | 225 the logarithm of the alignment */ |
| 226 #define POW2_BIGGER_THAN_DOT 14 | 226 #define POW2_BIGGER_THAN_DOT 14 |
| 227 .align32 POW2_BIGGER_THAN_DOT, NACL_INSTR_HALT_FILL | 227 .align32 POW2_BIGGER_THAN_DOT, NACL_INSTR_ARM_HALT_FILL |
| 228 .fill (TEXT_EXTEND - (1 << POW2_BIGGER_THAN_DOT))/4, 4, \ | 228 .fill (TEXT_EXTEND - (1 << POW2_BIGGER_THAN_DOT))/4, 4, \ |
| 229 NACL_INSTR_HALT_FILL | 229 NACL_INSTR_ARM_HALT_FILL |
| 230 #else | 230 #else |
| 231 .fill (TEXT_EXTEND - (. - start_of_text))/4, 4, NACL_INSTR_HALT_FILL | 231 .fill (TEXT_EXTEND - (. - start_of_text))/4, 4, \ |
| 232 NACL_INSTR_ARM_HALT_FILL |
| 232 #endif | 233 #endif |
| 233 | 234 |
| 234 end_of_text: | 235 end_of_text: |
| 235 | 236 |
| 236 #if defined(EXPECTED_RODATA) | 237 #if defined(EXPECTED_RODATA) |
| 237 .section .rodata | 238 .section .rodata |
| 238 ro_str: .ascii "Hello world\n" | 239 ro_str: .ascii "Hello world\n" |
| 239 /* 123456789012 */ | 240 /* 123456789012 */ |
| 240 #endif | 241 #endif |
| OLD | NEW |