| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 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 <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 /* | 9 /* |
| 10 * NaCl Simple/secure ELF loader (NaCl SEL). | 10 * NaCl Simple/secure ELF loader (NaCl SEL). |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 } | 980 } |
| 981 (*done->Run)(done); | 981 (*done->Run)(done); |
| 982 } | 982 } |
| 983 #endif | 983 #endif |
| 984 | 984 |
| 985 NaClErrorCode NaClWaitForLoadModuleStatus(struct NaClApp *nap) { | 985 NaClErrorCode NaClWaitForLoadModuleStatus(struct NaClApp *nap) { |
| 986 NaClErrorCode status; | 986 NaClErrorCode status; |
| 987 | 987 |
| 988 NaClXMutexLock(&nap->mu); | 988 NaClXMutexLock(&nap->mu); |
| 989 while (LOAD_STATUS_UNKNOWN == (status = nap->module_load_status)) { | 989 while (LOAD_STATUS_UNKNOWN == (status = nap->module_load_status)) { |
| 990 NaClCondVarWait(&nap->cv, &nap->mu); | 990 NaClXCondVarWait(&nap->cv, &nap->mu); |
| 991 } | 991 } |
| 992 NaClXMutexUnlock(&nap->mu); | 992 NaClXMutexUnlock(&nap->mu); |
| 993 return status; | 993 return status; |
| 994 } | 994 } |
| 995 | 995 |
| 996 static void NaClSecureChannelStartModuleRpc(struct NaClSrpcRpc *rpc, | 996 static void NaClSecureChannelStartModuleRpc(struct NaClSrpcRpc *rpc, |
| 997 struct NaClSrpcArg **in_args, | 997 struct NaClSrpcArg **in_args, |
| 998 struct NaClSrpcArg **out_args, | 998 struct NaClSrpcArg **out_args, |
| 999 struct NaClSrpcClosure *done) { | 999 struct NaClSrpcClosure *done) { |
| 1000 /* | 1000 /* |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1543 nacl_global_xlate_base = mem_start; | 1543 nacl_global_xlate_base = mem_start; |
| 1544 | 1544 |
| 1545 #ifdef __GNUC__ | 1545 #ifdef __GNUC__ |
| 1546 _ovly_debug_event (); | 1546 _ovly_debug_event (); |
| 1547 #endif | 1547 #endif |
| 1548 } | 1548 } |
| 1549 | 1549 |
| 1550 void NaClGdbHook(struct NaClApp const *nap) { | 1550 void NaClGdbHook(struct NaClApp const *nap) { |
| 1551 StopForDebuggerInit(nap->mem_start); | 1551 StopForDebuggerInit(nap->mem_start); |
| 1552 } | 1552 } |
| OLD | NEW |