Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 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 | |
| 4 * be found in the LICENSE file. | |
| 5 */ | |
| 6 | |
| 7 #ifndef SERVICE_RUNTIME_ARCH_MIPS_SEL_LDR_H__ | |
| 8 #define SERVICE_RUNTIME_ARCH_MIPS_SEL_LDR_H__ 1 | |
| 9 | |
| 10 #include "native_client/src/include/portability.h" | |
| 11 #include "native_client/src/trusted/service_runtime/nacl_config.h" | |
| 12 | |
| 13 #define NACL_MAX_ADDR_BITS 30 | |
| 14 | |
| 15 #define NACL_ADDRSPACE_LOWER_GUARD_SIZE 0 | |
| 16 #define NACL_ADDRSPACE_UPPER_GUARD_SIZE 0x2000 | |
| 17 | |
| 18 /* Must be synced with irt_compatible_rodata_addr in SConstruct */ | |
| 19 #define NACL_DATA_SEGMENT_START 0x10000000 | |
| 20 | |
| 21 #define NACL_THREAD_MAX 8192 | |
| 22 | |
| 23 #define NACL_NOOP_OPCODE 0x00000000 /* nop */ | |
| 24 #define NACL_HALT_OPCODE 0x00000008 /* jr $0 */ | |
|
Mark Seaborn
2012/09/18 03:24:34
I'm not sure if this was addressed by your design
petarj
2012/09/19 17:27:51
It gets executed, but the exception occurs right a
Mark Seaborn
2012/09/20 02:40:42
Did you consider using a breakpoint instruction?
petarj
2012/09/20 15:33:00
We hesitated previously to use break instruction,
| |
| 25 #define NACL_HALT_LEN 4 /* length of halt instruction */ | |
| 26 #define NACL_HALT_WORD NACL_HALT_OPCODE | |
| 27 | |
| 28 struct NaClApp; | |
|
Mark Seaborn
2012/09/18 03:24:34
Nit: you don't need these two forward declarations
petarj
2012/09/19 17:27:51
Done.
| |
| 29 struct NaClThreadContext; | |
| 30 | |
| 31 #endif /* SERVICE_RUNTIME_ARCH_MIPS_SEL_LDR_H__ */ | |
| OLD | NEW |