| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "native_client/src/trusted/service_runtime/nacl_kern_services.h" | 46 #include "native_client/src/trusted/service_runtime/nacl_kern_services.h" |
| 47 #include "native_client/src/trusted/service_runtime/nacl_resource.h" | 47 #include "native_client/src/trusted/service_runtime/nacl_resource.h" |
| 48 | 48 |
| 49 #include "native_client/src/trusted/service_runtime/sel_mem.h" | 49 #include "native_client/src/trusted/service_runtime/sel_mem.h" |
| 50 #include "native_client/src/trusted/service_runtime/sel_util.h" | 50 #include "native_client/src/trusted/service_runtime/sel_util.h" |
| 51 #include "native_client/src/trusted/service_runtime/sel_rt.h" | 51 #include "native_client/src/trusted/service_runtime/sel_rt.h" |
| 52 | 52 |
| 53 #include "native_client/src/trusted/service_runtime/name_service/name_service.h" | 53 #include "native_client/src/trusted/service_runtime/name_service/name_service.h" |
| 54 | 54 |
| 55 #include "native_client/src/trusted/validator/cpufeatures.h" | 55 #include "native_client/src/trusted/validator/cpufeatures.h" |
| 56 #include "native_client/src/trusted/validator/ncvalidate.h" |
| 56 | 57 |
| 57 EXTERN_C_BEGIN | 58 EXTERN_C_BEGIN |
| 58 | 59 |
| 59 #define NACL_SERVICE_PORT_DESCRIPTOR 3 | 60 #define NACL_SERVICE_PORT_DESCRIPTOR 3 |
| 60 #define NACL_SERVICE_ADDRESS_DESCRIPTOR 4 | 61 #define NACL_SERVICE_ADDRESS_DESCRIPTOR 4 |
| 61 | 62 |
| 62 #define NACL_DEFAULT_STACK_MAX (16 << 20) /* main thread stack */ | 63 #define NACL_DEFAULT_STACK_MAX (16 << 20) /* main thread stack */ |
| 63 | 64 |
| 64 #define NACL_SANDBOX_CHROOT_FD "SBX_D" | 65 #define NACL_SANDBOX_CHROOT_FD "SBX_D" |
| 65 | 66 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 360 |
| 360 int enable_debug_stub; | 361 int enable_debug_stub; |
| 361 const struct NaClDebugCallbacks *debug_stub_callbacks; | 362 const struct NaClDebugCallbacks *debug_stub_callbacks; |
| 362 struct NaClMutex exception_mu; | 363 struct NaClMutex exception_mu; |
| 363 uint32_t exception_handler; | 364 uint32_t exception_handler; |
| 364 int enable_exception_handling; | 365 int enable_exception_handling; |
| 365 #if NACL_WINDOWS | 366 #if NACL_WINDOWS |
| 366 enum NaClDebugExceptionHandlerState debug_exception_handler_state; | 367 enum NaClDebugExceptionHandlerState debug_exception_handler_state; |
| 367 NaClAttachDebugExceptionHandlerFunc attach_debug_exception_handler_func; | 368 NaClAttachDebugExceptionHandlerFunc attach_debug_exception_handler_func; |
| 368 #endif | 369 #endif |
| 369 int enable_dfa_validator; | 370 const struct NaClValidatorInterface *validator; |
| 370 }; | 371 }; |
| 371 | 372 |
| 372 | 373 |
| 373 | 374 |
| 374 void NaClAppIncrVerbosity(void); | 375 void NaClAppIncrVerbosity(void); |
| 375 | 376 |
| 376 /* | 377 /* |
| 377 * Initializes a NaCl application with the default parameters | 378 * Initializes a NaCl application with the default parameters |
| 378 * and the specified syscall table. | 379 * and the specified syscall table. |
| 379 * | 380 * |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 void NaClUntrustedThreadsSuspendAll(struct NaClApp *nap, int save_registers); | 773 void NaClUntrustedThreadsSuspendAll(struct NaClApp *nap, int save_registers); |
| 773 void NaClUntrustedThreadsResumeAll(struct NaClApp *nap); | 774 void NaClUntrustedThreadsResumeAll(struct NaClApp *nap); |
| 774 | 775 |
| 775 #if NACL_LINUX | 776 #if NACL_LINUX |
| 776 void handle_r_debug(const char *switch_value, char *argv0); | 777 void handle_r_debug(const char *switch_value, char *argv0); |
| 777 #endif | 778 #endif |
| 778 | 779 |
| 779 EXTERN_C_END | 780 EXTERN_C_END |
| 780 | 781 |
| 781 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */ | 782 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */ |
| OLD | NEW |