Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Side by Side Diff: src/trusted/validator_arm/cpuid_arm.h

Issue 9430028: Add function for generating validation signatures. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fixes Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/trusted/validator/x86/nacl_cpuid.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 */
OLDNEW
« no previous file with comments | « src/trusted/validator/x86/nacl_cpuid.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698