| 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_ARM_CPUID_ARM_H | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_CPUID_ARM_H |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_CPUID_ARM_H | 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_CPUID_ARM_H |
| 9 | 9 |
| 10 #include "native_client/src/include/portability.h" |
| 11 |
| 12 EXTERN_C_BEGIN |
| 10 | 13 |
| 11 typedef struct { | 14 typedef struct { |
| 12 /* Add a dummy field because a zero-sized structure causes skew between C and | 15 /* Add a dummy field because a zero-sized structure causes skew between C and |
| 13 * C++. | 16 * C++. |
| 14 */ | 17 */ |
| 15 int bogus; | 18 int bogus; |
| 16 } NaClCPUFeaturesArm; | 19 } NaClCPUFeaturesArm; |
| 17 | 20 |
| 18 static INLINE void NaClGetCurrentCPUFeatures(NaClCPUFeaturesArm *cpu_features) { | 21 static INLINE void NaClGetCurrentCPUFeatures(NaClCPUFeaturesArm *cpu_features) { |
| 19 UNREFERENCED_PARAMETER(cpu_features); | 22 UNREFERENCED_PARAMETER(cpu_features); |
| 20 } | 23 } |
| 21 | 24 |
| 22 static INLINE void NaClSetAllCPUFeatures(NaClCPUFeaturesArm *cpu_features) { | 25 static INLINE void NaClSetAllCPUFeatures(NaClCPUFeaturesArm *cpu_features) { |
| 23 UNREFERENCED_PARAMETER(cpu_features); | 26 /* Needed for testing. */ |
| 27 cpu_features->bogus = 1; |
| 24 } | 28 } |
| 25 | 29 |
| 26 static INLINE void NaClClearCPUFeatures(NaClCPUFeaturesArm *cpu_features) { | 30 static INLINE void NaClClearCPUFeatures(NaClCPUFeaturesArm *cpu_features) { |
| 27 UNREFERENCED_PARAMETER(cpu_features); | 31 /* Needed for testing. */ |
| 32 cpu_features->bogus = 0; |
| 28 } | 33 } |
| 29 | 34 |
| 35 EXTERN_C_END |
| 36 |
| 30 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_CPUID_ARM_H */ | 37 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_CPUID_ARM_H */ |
| OLD | NEW |