| 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 #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 Loading... |
| 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_ */ |
| OLD | NEW |