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

Side by Side Diff: src/trusted/validator/x86/64/ncvalidate.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
« no previous file with comments | « src/trusted/validator/x86/32/ncvalidate.c ('k') | src/trusted/validator/x86/64/ncvalidate.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_64_NCVALIDATE_H_ 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_64_NCVALIDATE_H_
8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_64_NCVALIDATE_H_ 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_64_NCVALIDATE_H_
9 9
10 /* Defines helper functions for implementing the ApplyValidator API 10 /* Defines helper functions for implementing the ApplyValidator API
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 * vstate_ptr - Pointer to be set to allocated validator 43 * vstate_ptr - Pointer to be set to allocated validator
44 * state if succeeded (NULL otherwise).o 44 * state if succeeded (NULL otherwise).o
45 */ 45 */
46 NaClValidationStatus NaClValidatorSetup_x86_64( 46 NaClValidationStatus NaClValidatorSetup_x86_64(
47 uintptr_t guest_addr, 47 uintptr_t guest_addr,
48 size_t size, 48 size_t size,
49 int bundle_size, 49 int bundle_size,
50 NaClCPUFeaturesX86 *cpu_features, 50 NaClCPUFeaturesX86 *cpu_features,
51 struct NaClValidatorState** vstate_ptr); 51 struct NaClValidatorState** vstate_ptr);
52 52
53 /* Runs the validator on the memory segment, returning
54 * true if the segment validates.
55 * Parameters are:
56 * guest_addr: The pc address to use.
57 * data - The contents of the code segment to be validated.
58 * size - The size of the code segment to be validated.
59 * vstate - The allocated and initialized validator state to use.
60 */
61 Bool NaClSegmentValidate_x86_64(
62 uintptr_t guest_addr,
63 uint8_t *data,
64 size_t size,
65 struct NaClValidatorState* vstate);
66
67 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_64_NCVALIDATE_H_ */ 53 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_64_NCVALIDATE_H_ */
OLDNEW
« no previous file with comments | « src/trusted/validator/x86/32/ncvalidate.c ('k') | src/trusted/validator/x86/64/ncvalidate.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698