Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: src/trusted/service_runtime/sel_ldr.h

Issue 10134056: Refactor the process of choosing validators. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: gyp, extern, formatting Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 348
348 int enable_debug_stub; 349 int enable_debug_stub;
349 const struct NaClDebugCallbacks *debug_stub_callbacks; 350 const struct NaClDebugCallbacks *debug_stub_callbacks;
350 struct NaClMutex exception_mu; 351 struct NaClMutex exception_mu;
351 uint32_t exception_handler; 352 uint32_t exception_handler;
352 int enable_exception_handling; 353 int enable_exception_handling;
353 #if NACL_WINDOWS 354 #if NACL_WINDOWS
354 enum NaClDebugExceptionHandlerState debug_exception_handler_state; 355 enum NaClDebugExceptionHandlerState debug_exception_handler_state;
355 NaClAttachDebugExceptionHandlerFunc attach_debug_exception_handler_func; 356 NaClAttachDebugExceptionHandlerFunc attach_debug_exception_handler_func;
356 #endif 357 #endif
357 int enable_dfa_validator; 358 const struct NaClValidatorInterface *validator;
358 }; 359 };
359 360
360 361
361 362
362 void NaClAppIncrVerbosity(void); 363 void NaClAppIncrVerbosity(void);
363 364
364 /* 365 /*
365 * Initializes a NaCl application with the default parameters 366 * Initializes a NaCl application with the default parameters
366 * and the specified syscall table. 367 * and the specified syscall table.
367 * 368 *
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 763
763 void NaClSuspendSignalHandler(void); 764 void NaClSuspendSignalHandler(void);
764 765
765 void handle_r_debug(const char *switch_value, char *argv0); 766 void handle_r_debug(const char *switch_value, char *argv0);
766 767
767 #endif 768 #endif
768 769
769 EXTERN_C_END 770 EXTERN_C_END
770 771
771 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */ 772 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698