| 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_NCVALIDATE_H__ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVALIDATE_H__ |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVALIDATE_H__ | 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVALIDATE_H__ |
| 9 | 9 |
| 10 /* Defines the API exposed by the Native Client validators. */ | 10 /* Defines the API exposed by the Native Client validators. */ |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 * in sel_ldr or command-line tool). | 56 * in sel_ldr or command-line tool). |
| 57 * readonly_text - If code should be considered read-only. | 57 * readonly_text - If code should be considered read-only. |
| 58 * cpu_features - The CPU features to support while validating. | 58 * cpu_features - The CPU features to support while validating. |
| 59 * cache - Pointer to NaCl validation cache. | 59 * cache - Pointer to NaCl validation cache. |
| 60 */ | 60 */ |
| 61 typedef NaClValidationStatus (*NaClValidateFunc)( | 61 typedef NaClValidationStatus (*NaClValidateFunc)( |
| 62 uintptr_t guest_addr, | 62 uintptr_t guest_addr, |
| 63 uint8_t *data, | 63 uint8_t *data, |
| 64 size_t size, | 64 size_t size, |
| 65 int stubout_mode, | 65 int stubout_mode, |
| 66 int pnacl_mode, |
| 66 int readonly_text, | 67 int readonly_text, |
| 67 const NaClCPUFeatures *cpu_features, | 68 const NaClCPUFeatures *cpu_features, |
| 68 const struct NaClValidationMetadata *metadata, | 69 const struct NaClValidationMetadata *metadata, |
| 69 struct NaClValidationCache *cache); | 70 struct NaClValidationCache *cache); |
| 70 | 71 |
| 71 /* Function type to copy an instruction safely. Returns non-zero on success. | 72 /* Function type to copy an instruction safely. Returns non-zero on success. |
| 72 * Implemented by the Service Runtime. | 73 * Implemented by the Service Runtime. |
| 73 */ | 74 */ |
| 74 typedef int (*NaClCopyInstructionFunc)( | 75 typedef int (*NaClCopyInstructionFunc)( |
| 75 uint8_t *dst, | 76 uint8_t *dst, |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 NACL_BUILD_ARCH, | 203 NACL_BUILD_ARCH, |
| 203 NACL_BUILD_SUBARCH)( | 204 NACL_BUILD_SUBARCH)( |
| 204 uintptr_t guest_addr, | 205 uintptr_t guest_addr, |
| 205 uint8_t *data, | 206 uint8_t *data, |
| 206 size_t size, | 207 size_t size, |
| 207 const NaClCPUFeatures *cpu_features); | 208 const NaClCPUFeatures *cpu_features); |
| 208 | 209 |
| 209 EXTERN_C_END | 210 EXTERN_C_END |
| 210 | 211 |
| 211 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVALIDATE_H__ */ | 212 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVALIDATE_H__ */ |
| OLD | NEW |