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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 /* Make a choice of validating functions. */ | 129 /* Make a choice of validating functions. */ |
130 const struct NaClValidatorInterface *NaClCreateValidator(); | 130 const struct NaClValidatorInterface *NaClCreateValidator(); |
131 | 131 |
132 /* Known Validator API initializers. Private. Do not use outside validator. */ | 132 /* Known Validator API initializers. Private. Do not use outside validator. */ |
133 const struct NaClValidatorInterface *NaClValidatorCreate_x86_64(); | 133 const struct NaClValidatorInterface *NaClValidatorCreate_x86_64(); |
134 const struct NaClValidatorInterface *NaClValidatorCreate_x86_32(); | 134 const struct NaClValidatorInterface *NaClValidatorCreate_x86_32(); |
135 const struct NaClValidatorInterface *NaClDfaValidatorCreate_x86_32(); | 135 const struct NaClValidatorInterface *NaClDfaValidatorCreate_x86_32(); |
136 const struct NaClValidatorInterface *NaClDfaValidatorCreate_x86_64(); | 136 const struct NaClValidatorInterface *NaClDfaValidatorCreate_x86_64(); |
137 const struct NaClValidatorInterface *NaClValidatorCreateArm(); | 137 const struct NaClValidatorInterface *NaClValidatorCreateArm(); |
| 138 const struct NaClValidatorInterface *NaClValidatorCreateMips(); |
138 | 139 |
139 /* Applies the validator, as used in a command-line tool to report issues. | 140 /* Applies the validator, as used in a command-line tool to report issues. |
140 * Note: This is intentionally separated from ApplyValidator, since it need | 141 * Note: This is intentionally separated from ApplyValidator, since it need |
141 * not be performance critical. | 142 * not be performance critical. |
142 * | 143 * |
143 * Parameters are: | 144 * Parameters are: |
144 * guest_addr - The virtual pc to assume with the beginning address of the | 145 * guest_addr - The virtual pc to assume with the beginning address of the |
145 * code segment. Typically, this is the corresponding addresss that | 146 * code segment. Typically, this is the corresponding addresss that |
146 * will be used by objdump. | 147 * will be used by objdump. |
147 * data - The contents of the code segment to be validated. | 148 * data - The contents of the code segment to be validated. |
148 * size - The size of the code segment to be validated. | 149 * size - The size of the code segment to be validated. |
149 * cpu_features - The CPU features to support while validating. | 150 * cpu_features - The CPU features to support while validating. |
150 */ | 151 */ |
151 NaClValidationStatus NACL_SUBARCH_NAME(ApplyValidatorVerbosely, | 152 NaClValidationStatus NACL_SUBARCH_NAME(ApplyValidatorVerbosely, |
152 NACL_TARGET_ARCH, | 153 NACL_TARGET_ARCH, |
153 NACL_TARGET_SUBARCH)( | 154 NACL_TARGET_SUBARCH)( |
154 uintptr_t guest_addr, | 155 uintptr_t guest_addr, |
155 uint8_t *data, | 156 uint8_t *data, |
156 size_t size, | 157 size_t size, |
157 const NaClCPUFeatures *cpu_features); | 158 const NaClCPUFeatures *cpu_features); |
158 | 159 |
159 EXTERN_C_END | 160 EXTERN_C_END |
160 | 161 |
161 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVALIDATE_H__ */ | 162 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVALIDATE_H__ */ |
OLD | NEW |