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

Side by Side Diff: src/trusted/service_runtime/nacl_config.h

Issue 10919162: [MIPS] Implementation of sel_ldr for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Rebase (Saturday morning). Created 8 years, 2 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
« no previous file with comments | « src/trusted/service_runtime/nacl.scons ('k') | src/trusted/service_runtime/nacl_signal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6
7 /* 7 /*
8 * NaCl Simple/secure ELF loader (NaCl SEL). 8 * NaCl Simple/secure ELF loader (NaCl SEL).
9 * 9 *
10 * NOTE: This header is ALSO included by assembler files and hence 10 * NOTE: This header is ALSO included by assembler files and hence
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 # define NACL_STACK_GETS_ARG (0) 245 # define NACL_STACK_GETS_ARG (0)
246 # define NACL_STACK_PAD_BELOW_ALIGN (0) 246 # define NACL_STACK_PAD_BELOW_ALIGN (0)
247 # define NACL_STACK_RED_ZONE (0) 247 # define NACL_STACK_RED_ZONE (0)
248 248
249 /* 249 /*
250 * NOTE: Used by various assembler files, needs to be 250 * NOTE: Used by various assembler files, needs to be
251 * synchronized with NaClThreadContext 251 * synchronized with NaClThreadContext
252 */ 252 */
253 # define NACL_CALLEE_SAVE_LIST {r4, r5, r6, r7, r8, r9, r10, fp, sp} 253 # define NACL_CALLEE_SAVE_LIST {r4, r5, r6, r7, r8, r9, r10, fp, sp}
254 254
255 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_mips
256
257 #undef NACL_KERN_STACK_SIZE // Mips needs 128k pthread stack size
258 #define NACL_KERN_STACK_SIZE (128 << 10)
259
260 #define NACL_BLOCK_SHIFT 4
261
262 /* 16-byte bundles, 256MB code segment*/
263 # define NACL_CONTROL_FLOW_MASK 0x0FFFFFF0
264 # define NACL_DATA_FLOW_MASK 0x3FFFFFFF
265 # define NACL_USERRET_FIX (0x4)
266 # define NACL_SYSARGS_FIX (NACL_USERRET_FIX + 0x4)
267 # define NACL_SYSCALLRET_FIX (NACL_USERRET_FIX + 0x4)
268 # define NACL_STACK_ALIGN_MASK (0x7)
269 # define NACL_STACK_GETS_ARG (0)
270 # define NACL_STACK_PAD_BELOW_ALIGN (0)
271 # define NACL_STACK_RED_ZONE (0)
272 /* 16 byte bundles */
273
255 #else /* NACL_ARCH(NACL_BUILD_ARCH) */ 274 #else /* NACL_ARCH(NACL_BUILD_ARCH) */
256 275
257 # error Unknown platform! 276 # error Unknown platform!
258 277
259 #endif /* NACL_ARCH(NACL_BUILD_ARCH) */ 278 #endif /* NACL_ARCH(NACL_BUILD_ARCH) */
260 279
261 280
262 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NACL_CONFIG_H_ */ 281 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NACL_CONFIG_H_ */
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/nacl.scons ('k') | src/trusted/service_runtime/nacl_signal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698