OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The Native Client Authors. All rights reserved. | 2 * Copyright 2012 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 #include "native_client/src/trusted/service_runtime/arch/mips/sel_ldr_mips.h" | 7 #include "native_client/src/trusted/service_runtime/arch/mips/sel_ldr_mips.h" |
8 #include "native_client/src/trusted/service_runtime/include/bits/nacl_syscalls.h
" | 8 #include "native_client/src/trusted/service_runtime/include/bits/nacl_syscalls.h
" |
9 #include "native_client/src/trusted/service_runtime/nacl_config.h" | 9 #include "native_client/src/trusted/service_runtime/nacl_config.h" |
10 | 10 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 addiu $a1, $a1, %lo(end_of_text) | 130 addiu $a1, $a1, %lo(end_of_text) |
131 jal write_num_16 | 131 jal write_num_16 |
132 addu $a0, $zero, 1 | 132 addu $a0, $zero, 1 |
133 | 133 |
134 addu $a0, $zero, 1 | 134 addu $a0, $zero, 1 |
135 addu $a1, $zero, '\n' | 135 addu $a1, $zero, '\n' |
136 jal write_char | 136 jal write_char |
137 nop | 137 nop |
138 | 138 |
139 addu $a0, $zero, 0 | 139 addu $a0, $zero, 0 |
140 lui $t9, %hi(NACL_SYSCALL_ADDR(NACL_sys_sysbrk)) | 140 lui $t9, %hi(NACL_SYSCALL_ADDR(NACL_sys_brk)) |
141 addiu $t9, $t9, %lo(NACL_SYSCALL_ADDR(NACL_sys_sysbrk)) | 141 addiu $t9, $t9, %lo(NACL_SYSCALL_ADDR(NACL_sys_brk)) |
142 nop | 142 nop |
143 | 143 |
144 nop | 144 nop |
145 and $t9, $t9, JUMP_MASK | 145 and $t9, $t9, JUMP_MASK |
146 jalr $t9 | 146 jalr $t9 |
147 nop | 147 nop |
148 | 148 |
149 move $s0, $v0 /* save a copy of break addr */ | 149 move $s0, $v0 /* save a copy of break addr */ |
150 move $a1, $v0 | 150 move $a1, $v0 |
151 jal write_num_16 | 151 jal write_num_16 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 .fill (TEXT_EXTEND - (. - start_of_text))/4, 4, NACL_HALT_OPCODE | 245 .fill (TEXT_EXTEND - (. - start_of_text))/4, 4, NACL_HALT_OPCODE |
246 #endif | 246 #endif |
247 | 247 |
248 end_of_text: | 248 end_of_text: |
249 | 249 |
250 #if defined(EXPECTED_RODATA) | 250 #if defined(EXPECTED_RODATA) |
251 .section .rodata | 251 .section .rodata |
252 ro_str: .ascii "Hello world\n" | 252 ro_str: .ascii "Hello world\n" |
253 #endif | 253 #endif |
254 | 254 |
OLD | NEW |