Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: src/trusted/service_runtime/arch/mips/nacl_text_pad_test.S

Issue 12209042: Ensure syscall functions are consistently prefixed with "NaClSys" (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698