| 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 * This loader can only process NaCl object files as produced using | 10 * This loader can only process NaCl object files as produced using |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 #define NACL_SANDBOX_CHROOT_FD "SBX_D" | 62 #define NACL_SANDBOX_CHROOT_FD "SBX_D" |
| 63 | 63 |
| 64 struct NaClAppThread; | 64 struct NaClAppThread; |
| 65 struct NaClDesc; /* see native_client/src/trusted/desc/nacl_desc_base.h */ | 65 struct NaClDesc; /* see native_client/src/trusted/desc/nacl_desc_base.h */ |
| 66 struct NaClDynamicRegion; | 66 struct NaClDynamicRegion; |
| 67 struct NaClManifestProxy; | 67 struct NaClManifestProxy; |
| 68 struct NaClReverseQuotaInterface; | 68 struct NaClReverseQuotaInterface; |
| 69 struct NaClSecureService; | 69 struct NaClSecureService; |
| 70 struct NaClSecureReverseService; | 70 struct NaClSecureReverseService; |
| 71 struct NaClThreadInterface; /* see sel_ldr_thread_interface.h */ | 71 struct NaClThreadInterface; /* see sel_ldr_thread_interface.h */ |
| 72 struct NaClValidationCache; |
| 72 | 73 |
| 73 struct NaClDebugCallbacks { | 74 struct NaClDebugCallbacks { |
| 74 void (*thread_create_hook)(struct NaClAppThread *natp); | 75 void (*thread_create_hook)(struct NaClAppThread *natp); |
| 75 void (*thread_exit_hook)(struct NaClAppThread *natp); | 76 void (*thread_exit_hook)(struct NaClAppThread *natp); |
| 76 void (*process_exit_hook)(int exit_status); | 77 void (*process_exit_hook)(int exit_status); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 enum NaClResourcePhase { | 80 enum NaClResourcePhase { |
| 80 NACL_RESOURCE_PHASE_START, | 81 NACL_RESOURCE_PHASE_START, |
| 81 NACL_RESOURCE_PHASE_REV_CHAN | 82 NACL_RESOURCE_PHASE_REV_CHAN |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 * Accesses must be protected by dynamic_load_mutex | 292 * Accesses must be protected by dynamic_load_mutex |
| 292 */ | 293 */ |
| 293 int dynamic_delete_generation; | 294 int dynamic_delete_generation; |
| 294 | 295 |
| 295 | 296 |
| 296 int running; | 297 int running; |
| 297 int exit_status; | 298 int exit_status; |
| 298 | 299 |
| 299 | 300 |
| 300 NaClCPUFeatures cpu_features; | 301 NaClCPUFeatures cpu_features; |
| 302 struct NaClValidationCache *validation_cache; |
| 301 int ignore_validator_result; | 303 int ignore_validator_result; |
| 302 int skip_validator; | 304 int skip_validator; |
| 303 int validator_stub_out_mode; | 305 int validator_stub_out_mode; |
| 304 | 306 |
| 305 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 && NACL_BUILD_SUBARCH == 32 | 307 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 && NACL_BUILD_SUBARCH == 32 |
| 306 uint16_t code_seg_sel; | 308 uint16_t code_seg_sel; |
| 307 uint16_t data_seg_sel; | 309 uint16_t data_seg_sel; |
| 308 #endif | 310 #endif |
| 309 | 311 |
| 310 uintptr_t break_addr; /* user addr */ | 312 uintptr_t break_addr; /* user addr */ |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 | 690 |
| 689 #endif | 691 #endif |
| 690 | 692 |
| 691 #if NACL_LINUX | 693 #if NACL_LINUX |
| 692 void handle_r_debug(const char *switch_value, char *argv0); | 694 void handle_r_debug(const char *switch_value, char *argv0); |
| 693 #endif | 695 #endif |
| 694 | 696 |
| 695 EXTERN_C_END | 697 EXTERN_C_END |
| 696 | 698 |
| 697 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */ | 699 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */ |
| OLD | NEW |