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

Side by Side Diff: src/trusted/platform_qualify/arch/x86/platform_qual_test.c

Issue 11864002: Move CPU features into its own static library. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Address bsy's comments by not building x86 target when host isn't x86. This is how things are curre… Created 7 years, 11 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 /* 7 /*
8 * platform_qual_test.c 8 * platform_qual_test.c
9 * 9 *
10 * Native Client Platform Qualification Test 10 * Native Client Platform Qualification Test
11 * 11 *
12 * This uses shell status code to indicate its result; non-zero return 12 * This uses shell status code to indicate its result; non-zero return
13 * code indicates the CPUID instruction is not implemented or not 13 * code indicates the CPUID instruction is not implemented or not
14 * implemented correctly. 14 * implemented correctly.
15 */ 15 */
16 16
17 #include <stdio.h> 17 #include <stdio.h>
18 18
19 #include "native_client/src/include/nacl_platform.h" 19 #include "native_client/src/include/nacl_platform.h"
20 #include "native_client/src/include/portability.h" 20 #include "native_client/src/include/portability.h"
21 #include "native_client/src/shared/platform/nacl_check.h" 21 #include "native_client/src/shared/platform/nacl_check.h"
22 #include "native_client/src/trusted/validator/x86/nacl_cpuid.h" 22 #include "native_client/src/trusted/cpu_features/arch/x86/cpu_x86.h"
23 #include "native_client/src/trusted/platform_qualify/nacl_cpuwhitelist.h" 23 #include "native_client/src/trusted/platform_qualify/nacl_cpuwhitelist.h"
24 #include "native_client/src/trusted/platform_qualify/nacl_os_qualify.h" 24 #include "native_client/src/trusted/platform_qualify/nacl_os_qualify.h"
25 #include "native_client/src/trusted/platform_qualify/nacl_dep_qualify.h" 25 #include "native_client/src/trusted/platform_qualify/nacl_dep_qualify.h"
26 #include "native_client/src/trusted/platform_qualify/arch/x86/vcpuid.h" 26 #include "native_client/src/trusted/platform_qualify/arch/x86/vcpuid.h"
27 #include "native_client/src/trusted/service_runtime/nacl_config.h" 27 #include "native_client/src/trusted/service_runtime/nacl_config.h"
28 #include "native_client/src/trusted/service_runtime/sel_memory.h" 28 #include "native_client/src/trusted/service_runtime/sel_memory.h"
29 29
30 void TestDEPCheckFailurePath(void) { 30 void TestDEPCheckFailurePath(void) {
31 size_t size = NACL_PAGESIZE; 31 size_t size = NACL_PAGESIZE;
32 void *page; 32 void *page;
(...skipping 30 matching lines...) Expand all
63 63
64 /* 64 /*
65 * don't use the white list for now 65 * don't use the white list for now
66 * if (NaCl_CPUIsWhitelisted() == 0) return -1; 66 * if (NaCl_CPUIsWhitelisted() == 0) return -1;
67 * printf("CPU is whitelisted\n"); 67 * printf("CPU is whitelisted\n");
68 */ 68 */
69 69
70 printf("platform_qual_test: PASS\n"); 70 printf("platform_qual_test: PASS\n");
71 return 0; 71 return 0;
72 } 72 }
OLDNEW
« no previous file with comments | « src/trusted/platform_qualify/arch/x86/nacl_cpuwhitelist_test.c ('k') | src/trusted/platform_qualify/arch/x86/vcpuid.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698