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

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

Issue 9535001: Add validation caching interface. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: More edits Created 8 years, 9 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "native_client/src/trusted/service_runtime/nacl_kern_services.h" 44 #include "native_client/src/trusted/service_runtime/nacl_kern_services.h"
45 #include "native_client/src/trusted/service_runtime/nacl_resource.h" 45 #include "native_client/src/trusted/service_runtime/nacl_resource.h"
46 46
47 #include "native_client/src/trusted/service_runtime/sel_mem.h" 47 #include "native_client/src/trusted/service_runtime/sel_mem.h"
48 #include "native_client/src/trusted/service_runtime/sel_util.h" 48 #include "native_client/src/trusted/service_runtime/sel_util.h"
49 #include "native_client/src/trusted/service_runtime/sel_rt.h" 49 #include "native_client/src/trusted/service_runtime/sel_rt.h"
50 50
51 #include "native_client/src/trusted/service_runtime/name_service/name_service.h" 51 #include "native_client/src/trusted/service_runtime/name_service/name_service.h"
52 52
53 #include "native_client/src/trusted/validator/cpufeatures.h" 53 #include "native_client/src/trusted/validator/cpufeatures.h"
54 #include "native_client/src/trusted/validator/validation_cache.h"
54 55
55 EXTERN_C_BEGIN 56 EXTERN_C_BEGIN
56 57
57 #define NACL_SERVICE_PORT_DESCRIPTOR 3 58 #define NACL_SERVICE_PORT_DESCRIPTOR 3
58 #define NACL_SERVICE_ADDRESS_DESCRIPTOR 4 59 #define NACL_SERVICE_ADDRESS_DESCRIPTOR 4
59 60
60 #define NACL_DEFAULT_STACK_MAX (16 << 20) /* main thread stack */ 61 #define NACL_DEFAULT_STACK_MAX (16 << 20) /* main thread stack */
61 62
62 #define NACL_SANDBOX_CHROOT_FD "SBX_D" 63 #define NACL_SANDBOX_CHROOT_FD "SBX_D"
63 64
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 701
700 #endif 702 #endif
701 703
702 #if NACL_LINUX 704 #if NACL_LINUX
703 void handle_r_debug(const char *switch_value, char *argv0); 705 void handle_r_debug(const char *switch_value, char *argv0);
704 #endif 706 #endif
705 707
706 EXTERN_C_END 708 EXTERN_C_END
707 709
708 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */ 710 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698