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

Side by Side Diff: src/trusted/service_runtime/arch/x86_32/sel_ldr_x86_32.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 #include "native_client/src/include/portability_string.h" 7 #include "native_client/src/include/portability_string.h"
8 #include "native_client/src/include/nacl_macros.h" 8 #include "native_client/src/include/nacl_macros.h"
9 #include "native_client/src/include/nacl_platform.h" 9 #include "native_client/src/include/nacl_platform.h"
10 #include "native_client/src/shared/platform/nacl_check.h" 10 #include "native_client/src/shared/platform/nacl_check.h"
11 #include "native_client/src/trusted/service_runtime/nacl_globals.h" 11 #include "native_client/src/trusted/service_runtime/nacl_globals.h"
12 #include "native_client/src/trusted/service_runtime/sel_ldr.h" 12 #include "native_client/src/trusted/service_runtime/sel_ldr.h"
13 #include "native_client/src/trusted/service_runtime/sel_memory.h" 13 #include "native_client/src/trusted/service_runtime/sel_memory.h"
14 #include "native_client/src/trusted/service_runtime/springboard.h" 14 #include "native_client/src/trusted/service_runtime/springboard.h"
15 #include "native_client/src/trusted/service_runtime/arch/x86/sel_ldr_x86.h" 15 #include "native_client/src/trusted/service_runtime/arch/x86/sel_ldr_x86.h"
16 #include "native_client/src/trusted/service_runtime/arch/x86_32/sel_rt_32.h" 16 #include "native_client/src/trusted/service_runtime/arch/x86_32/sel_rt_32.h"
17 #include "native_client/src/trusted/service_runtime/arch/x86_32/tramp_32.h" 17 #include "native_client/src/trusted/service_runtime/arch/x86_32/tramp_32.h"
18 #include "native_client/src/trusted/validator/x86/nacl_cpuid.h" 18 #include "native_client/src/trusted/cpu_features/arch/x86/cpu_x86.h"
19 19
20 struct NaClPcrelThunkGlobals { 20 struct NaClPcrelThunkGlobals {
21 struct NaClThreadContext **user; 21 struct NaClThreadContext **user;
22 }; 22 };
23 23
24 static struct NaClPcrelThunkGlobals nacl_pcrel_globals; 24 static struct NaClPcrelThunkGlobals nacl_pcrel_globals;
25 25
26 /* 26 /*
27 * Create thunk for use by syscall trampoline code. 27 * Create thunk for use by syscall trampoline code.
28 */ 28 */
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 } 176 }
177 177
178 void NaClLoadSpringboard(struct NaClApp *nap) { 178 void NaClLoadSpringboard(struct NaClApp *nap) {
179 LoadSpringboard(nap, &nap->syscall_return_springboard, 179 LoadSpringboard(nap, &nap->syscall_return_springboard,
180 &NaCl_springboard, &NaCl_springboard_end, 1); 180 &NaCl_springboard, &NaCl_springboard_end, 1);
181 181
182 LoadSpringboard(nap, &nap->all_regs_springboard, 182 LoadSpringboard(nap, &nap->all_regs_springboard,
183 &NaCl_springboard_all_regs, 183 &NaCl_springboard_all_regs,
184 &NaCl_springboard_all_regs_end, 2); 184 &NaCl_springboard_all_regs_end, 2);
185 } 185 }
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/arch/x86_32/nacl_switch_to_app_32.c ('k') | src/trusted/service_runtime/arch/x86_32/sel_rt_32.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698