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

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

Issue 10134056: Refactor the process of choosing validators. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: more aesthetics Created 8 years, 6 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
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/nacl_compiler_annotations.h"
10 11
11 typedef struct { 12 typedef struct {
12 /* Add a dummy field because a zero-sized structure causes skew between C and 13 /* Add a dummy field because a zero-sized structure causes skew between C and
13 * C++. 14 * C++.
14 */ 15 */
15 int bogus; 16 int bogus;
16 } NaClCPUFeaturesArm; 17 } NaClCPUFeaturesArm;
17 18
18 static INLINE void NaClGetCurrentCPUFeatures(NaClCPUFeaturesArm *cpu_features) { 19 static INLINE void NaClGetCurrentCPUFeatures(NaClCPUFeaturesArm *cpu_features) {
19 UNREFERENCED_PARAMETER(cpu_features); 20 UNREFERENCED_PARAMETER(cpu_features);
20 } 21 }
21 22
22 static INLINE void NaClSetAllCPUFeatures(NaClCPUFeaturesArm *cpu_features) { 23 static INLINE void NaClSetAllCPUFeatures(NaClCPUFeaturesArm *cpu_features) {
23 UNREFERENCED_PARAMETER(cpu_features); 24 UNREFERENCED_PARAMETER(cpu_features);
24 } 25 }
25 26
26 static INLINE void NaClClearCPUFeatures(NaClCPUFeaturesArm *cpu_features) { 27 static INLINE void NaClClearCPUFeatures(NaClCPUFeaturesArm *cpu_features) {
27 UNREFERENCED_PARAMETER(cpu_features); 28 UNREFERENCED_PARAMETER(cpu_features);
28 } 29 }
29 30
30 static INLINE int NaClFixCPUFeatures(NaClCPUFeaturesArm *cpu_features) { 31 static INLINE int NaClFixCPUFeatures(NaClCPUFeaturesArm *cpu_features) {
31 UNREFERENCED_PARAMETER(cpu_features); 32 UNREFERENCED_PARAMETER(cpu_features);
32 return 1; 33 return 1;
33 } 34 }
34 35
35 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_CPUID_ARM_H */ 36 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_CPUID_ARM_H */
OLDNEW
« no previous file with comments | « src/trusted/validator/x86/ncval_seg_sfi/ncvalidate.c ('k') | src/trusted/validator_arm/ncvalidate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698