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 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 /* | 9 /* |
10 * NaCl Simple/secure ELF loader (NaCl SEL). | 10 * NaCl Simple/secure ELF loader (NaCl SEL). |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 struct NaClDescEffectorLdr *effp; | 68 struct NaClDescEffectorLdr *effp; |
69 | 69 |
70 /* Get the set of features that the CPU we're running on supports. */ | 70 /* Get the set of features that the CPU we're running on supports. */ |
71 /* These may be adjusted later in sel_main.c for fixed-feature CPU mode. */ | 71 /* These may be adjusted later in sel_main.c for fixed-feature CPU mode. */ |
72 NaClGetCurrentCPUFeatures(&nap->cpu_features); | 72 NaClGetCurrentCPUFeatures(&nap->cpu_features); |
73 nap->fixed_feature_cpu_mode = 0; | 73 nap->fixed_feature_cpu_mode = 0; |
74 | 74 |
75 /* The validation cache will be injected later, if it exists. */ | 75 /* The validation cache will be injected later, if it exists. */ |
76 nap->validation_cache = NULL; | 76 nap->validation_cache = NULL; |
77 | 77 |
| 78 nap->enable_dfa_validator = 0; |
| 79 |
78 nap->addr_bits = NACL_MAX_ADDR_BITS; | 80 nap->addr_bits = NACL_MAX_ADDR_BITS; |
79 | 81 |
80 nap->stack_size = NACL_DEFAULT_STACK_MAX; | 82 nap->stack_size = NACL_DEFAULT_STACK_MAX; |
81 | 83 |
82 nap->aux_info = NULL; | 84 nap->aux_info = NULL; |
83 | 85 |
84 nap->mem_start = 0; | 86 nap->mem_start = 0; |
85 | 87 |
86 #if (NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 \ | 88 #if (NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 \ |
87 && NACL_BUILD_SUBARCH == 32 && __PIC__) | 89 && NACL_BUILD_SUBARCH == 32 && __PIC__) |
(...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1746 nacl_global_xlate_base = mem_start; | 1748 nacl_global_xlate_base = mem_start; |
1747 | 1749 |
1748 NaClSandboxMemoryStartForValgrind(mem_start); | 1750 NaClSandboxMemoryStartForValgrind(mem_start); |
1749 | 1751 |
1750 _ovly_debug_event(); | 1752 _ovly_debug_event(); |
1751 } | 1753 } |
1752 | 1754 |
1753 void NaClGdbHook(struct NaClApp const *nap) { | 1755 void NaClGdbHook(struct NaClApp const *nap) { |
1754 StopForDebuggerInit(nap->mem_start); | 1756 StopForDebuggerInit(nap->mem_start); |
1755 } | 1757 } |
OLD | NEW |