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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 movt r1, :upper16:(end_of_text) | 137 movt r1, :upper16:(end_of_text) |
138 mov r0, #1 | 138 mov r0, #1 |
139 bl write_num_16 | 139 bl write_num_16 |
140 | 140 |
141 mov r0, #1 | 141 mov r0, #1 |
142 mov r1, #'\n' | 142 mov r1, #'\n' |
143 nop | 143 nop |
144 bl write_char | 144 bl write_char |
145 | 145 |
146 mov r0, #0 | 146 mov r0, #0 |
147 movw r3, lower_16(NACL_SYSCALL_ADDR(NACL_sys_sysbrk)) | 147 movw r3, lower_16(NACL_SYSCALL_ADDR(NACL_sys_brk)) |
148 movt r3, upper_16(NACL_SYSCALL_ADDR(NACL_sys_sysbrk)) | 148 movt r3, upper_16(NACL_SYSCALL_ADDR(NACL_sys_brk)) |
149 nop | 149 nop |
150 | 150 |
151 nop | 151 nop |
152 nop | 152 nop |
153 bic r3, r3, #0xc000000f | 153 bic r3, r3, #0xc000000f |
154 blx r3 | 154 blx r3 |
155 | 155 |
156 mov r4, r0 /* save a copy of break addr */ | 156 mov r4, r0 /* save a copy of break addr */ |
157 mov r1, r0 | 157 mov r1, r0 |
158 mov r0, #1 | 158 mov r0, #1 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 NACL_INSTR_ARM_HALT_FILL | 236 NACL_INSTR_ARM_HALT_FILL |
237 #endif | 237 #endif |
238 | 238 |
239 end_of_text: | 239 end_of_text: |
240 | 240 |
241 #if defined(EXPECTED_RODATA) | 241 #if defined(EXPECTED_RODATA) |
242 .section .rodata | 242 .section .rodata |
243 ro_str: .ascii "Hello world\n" | 243 ro_str: .ascii "Hello world\n" |
244 /* 123456789012 */ | 244 /* 123456789012 */ |
245 #endif | 245 #endif |
OLD | NEW |