Chromium Code Reviews| 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 #include "native_client/src/trusted/validator_arm/ncvalidate.h" | 7 #include "native_client/src/trusted/validator_arm/ncvalidate.h" |
| 8 | 8 |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 UNREFERENCED_PARAMETER(cache); | 78 UNREFERENCED_PARAMETER(cache); |
| 79 | 79 |
| 80 if (stubout_mode) | 80 if (stubout_mode) |
| 81 return NaClValidationFailedNotImplemented; | 81 return NaClValidationFailedNotImplemented; |
| 82 if (readonly_text) | 82 if (readonly_text) |
| 83 return NaClValidationFailedNotImplemented; | 83 return NaClValidationFailedNotImplemented; |
| 84 | 84 |
| 85 return ((0 == NCValidateSegment(data, guest_addr, size)) | 85 return ((0 == NCValidateSegment(data, guest_addr, size)) |
| 86 ? NaClValidationSucceeded : NaClValidationFailed); | 86 ? NaClValidationSucceeded : NaClValidationFailed); |
| 87 } | 87 } |
| 88 | |
| 89 NaClValidationStatus NACL_SUBARCH_NAME(ApplyValidatorCodeReplacement, arm, 32) | |
|
Nick Bray
2012/04/25 20:57:42
See previous comments, probably want to keep.
pasko-google - do not use
2012/04/26 15:17:01
This would lead us to creating quite a few stubs,
Nick Bray
2012/04/27 00:41:30
Yeah, I was thinking of putting a NULL check in se
| |
| 90 (uintptr_t guest_addr, | |
| 91 uint8_t *data_old, | |
| 92 uint8_t *data_new, | |
| 93 size_t size, | |
| 94 const NaClCPUFeaturesArm *cpu_features) { | |
| 95 UNREFERENCED_PARAMETER(guest_addr); | |
| 96 UNREFERENCED_PARAMETER(data_old); | |
| 97 UNREFERENCED_PARAMETER(data_new); | |
| 98 UNREFERENCED_PARAMETER(size); | |
| 99 UNREFERENCED_PARAMETER(cpu_features); | |
| 100 return NaClValidationFailedNotImplemented; | |
| 101 } | |
| 102 | |
| 103 NaClValidationStatus NACL_SUBARCH_NAME(ApplyValidatorCopy, arm, 32) | |
| 104 (uintptr_t guest_addr, | |
| 105 uint8_t *data_old, | |
| 106 uint8_t *data_new, | |
| 107 size_t size, | |
| 108 const NaClCPUFeaturesArm *cpu_features) { | |
| 109 UNREFERENCED_PARAMETER(guest_addr); | |
| 110 UNREFERENCED_PARAMETER(data_old); | |
| 111 UNREFERENCED_PARAMETER(data_new); | |
| 112 UNREFERENCED_PARAMETER(size); | |
| 113 UNREFERENCED_PARAMETER(cpu_features); | |
| 114 return NaClValidationFailedNotImplemented; | |
| 115 } | |
| 116 | |
| 117 EXTERN_C_END | 88 EXTERN_C_END |
| OLD | NEW |