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

Side by Side Diff: src/trusted/service_runtime/nacl_all_modules.c

Issue 209423004: Add NaClChromeMainInitForNonSfi (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 6 years, 9 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
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 * Gather ye all module initializations and finalizations here. 8 * Gather ye all module initializations and finalizations here.
9 */ 9 */
10 #include "native_client/src/shared/srpc/nacl_srpc.h" 10 #include "native_client/src/shared/srpc/nacl_srpc.h"
11 #include "native_client/src/trusted/debug_stub/debug_stub.h" 11 #include "native_client/src/trusted/debug_stub/debug_stub.h"
12 #include "native_client/src/trusted/desc/nrd_all_modules.h" 12 #include "native_client/src/trusted/desc/nrd_all_modules.h"
13 #include "native_client/src/trusted/fault_injection/fault_injection.h" 13 #include "native_client/src/trusted/fault_injection/fault_injection.h"
14 #include "native_client/src/trusted/service_runtime/nacl_globals.h" 14 #include "native_client/src/trusted/service_runtime/nacl_globals.h"
15 #include "native_client/src/trusted/service_runtime/nacl_syscall_handlers.h" 15 #include "native_client/src/trusted/service_runtime/nacl_syscall_handlers.h"
16 #include "native_client/src/trusted/service_runtime/nacl_thread_nice.h" 16 #include "native_client/src/trusted/service_runtime/nacl_thread_nice.h"
17 #include "native_client/src/trusted/service_runtime/nacl_tls.h" 17 #include "native_client/src/trusted/service_runtime/nacl_tls.h"
18 #include "native_client/src/trusted/service_runtime/nacl_stack_safety.h" 18 #include "native_client/src/trusted/service_runtime/nacl_stack_safety.h"
19 19
20 void NaClAllModulesInit(void) { 20 void NaClAllModulesInit(void) {
21 NaClNrdAllModulesInit(); 21 NaClNrdAllModulesInit();
22 NaClFaultInjectionModuleInit(); 22 NaClFaultInjectionModuleInit();
23 NaClGlobalModuleInit(); /* various global variables */ 23 NaClGlobalModuleInit(); /* various global variables */
24 NaClSrpcModuleInit(); 24 NaClSrpcModuleInit();
25 NaClTlsInit(); 25 NaClTlsInit();
26 NaClSyscallTableInit(); 26 NaClSyscallTableInit();
27 NaClThreadNiceInit(); 27 NaClThreadNiceInit();
28 } 28 }
29 29
30 void NaClAllModulesInitForNonSfi(void) {
Mark Seaborn 2014/03/28 14:09:45 Just call whatever Init functions you need directl
hamaji 2014/04/01 07:10:38 I remembered a reason we need to call NaClChromeMa
hamaji 2014/04/01 07:59:32 I guess we don't need to call NaClChromeMainArgsCr
31 NaClNrdAllModulesInit();
32 NaClGlobalModuleInit(); /* various global variables */
Mark Seaborn 2014/03/28 14:09:45 I doubt you need this one.
hamaji 2014/04/01 07:10:38 Removed.
hamaji 2014/04/01 07:59:32 This comment was just a mistake...
33 NaClSrpcModuleInit();
34 }
30 35
31 void NaClAllModulesFini(void) { 36 void NaClAllModulesFini(void) {
32 NaClTlsFini(); 37 NaClTlsFini();
33 NaClSrpcModuleFini(); 38 NaClSrpcModuleFini();
34 NaClGlobalModuleFini(); 39 NaClGlobalModuleFini();
35 NaClNrdAllModulesFini(); 40 NaClNrdAllModulesFini();
36 } 41 }
42
43 void NaClAllModulesFiniForNonSfi(void) {
44 NaClSrpcModuleFini();
45 NaClGlobalModuleFini();
46 NaClNrdAllModulesFini();
47 }
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/nacl_all_modules.h ('k') | src/trusted/service_runtime/sel_main_chrome.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698