OLD | NEW |
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 Loading... |
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 (NACL_DATA_SEGMENT_START -1) & ~0xf; |
| 264 # define NACL_DATA_FLOW_MASK (1U * (1 << NACL_MAX_ADDR_BITS) -1); |
| 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 # define NACL_MIPS_BUNDLE_SIZE_LOG 4 |
| 274 |
| 275 # define NACL_CALLEE_SAVE_LIST {t0, t1, t2, t3, t4, t5, t6, t7, s0, s1, s2, \ |
| 276 s3, s4, s5, s6, s7, t8, t9, gp, sp, fp} |
| 277 |
255 #else /* NACL_ARCH(NACL_BUILD_ARCH) */ | 278 #else /* NACL_ARCH(NACL_BUILD_ARCH) */ |
256 | 279 |
257 # error Unknown platform! | 280 # error Unknown platform! |
258 | 281 |
259 #endif /* NACL_ARCH(NACL_BUILD_ARCH) */ | 282 #endif /* NACL_ARCH(NACL_BUILD_ARCH) */ |
260 | 283 |
261 | 284 |
262 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NACL_CONFIG_H_ */ | 285 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NACL_CONFIG_H_ */ |
OLD | NEW |