| 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 #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 Loading... |
| 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 } |
| OLD | NEW |