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

Side by Side Diff: src/trusted/service_runtime/sel_ldr.h

Issue 11543028: Allow creating a NaClAppThread without creating a new host OS thread (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Review: Add NACL_WUR Created 8 years 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 * NaCl Simple/secure ELF loader (NaCl SEL). 8 * NaCl Simple/secure ELF loader (NaCl SEL).
9 * 9 *
10 * This loader can only process NaCl object files as produced using 10 * This loader can only process NaCl object files as produced using
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 * 508 *
509 * Also mark nap's exit_status and running member variables, announce 509 * Also mark nap's exit_status and running member variables, announce
510 * via condvar that the nexe should be considered no longer running. 510 * via condvar that the nexe should be considered no longer running.
511 * 511 *
512 * Returns true (non-zero) if exit status was reported via the reverse 512 * Returns true (non-zero) if exit status was reported via the reverse
513 * channel, and false (0) otherwise. 513 * channel, and false (0) otherwise.
514 */ 514 */
515 int NaClReportExitStatus(struct NaClApp *nap, int exit_status); 515 int NaClReportExitStatus(struct NaClApp *nap, int exit_status);
516 516
517 /* 517 /*
518 * Get the top of the initial thread's stack. Returns a user address.
519 */
520 uintptr_t NaClGetInitialStackTop(struct NaClApp *nap);
521
522 /*
518 * Used to launch the main thread. NB: calling thread may in the 523 * Used to launch the main thread. NB: calling thread may in the
519 * future become the main NaCl app thread, and this function will 524 * future become the main NaCl app thread, and this function will
520 * return only after the NaCl app main thread exits. In such an 525 * return only after the NaCl app main thread exits. In such an
521 * alternative design, NaClWaitForMainThreadToExit will become a 526 * alternative design, NaClWaitForMainThreadToExit will become a
522 * no-op. 527 * no-op.
523 */ 528 */
524 int NaClCreateMainThread(struct NaClApp *nap, 529 int NaClCreateMainThread(struct NaClApp *nap,
525 int argc, 530 int argc,
526 char **argv, 531 char **argv,
527 char const *const *envp) NACL_WUR; 532 char const *const *envp) NACL_WUR;
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 #else 783 #else
779 static INLINE void NaClHandleBootstrapArgs(int *argc_p, char ***argv_p) { 784 static INLINE void NaClHandleBootstrapArgs(int *argc_p, char ***argv_p) {
780 UNREFERENCED_PARAMETER(argc_p); 785 UNREFERENCED_PARAMETER(argc_p);
781 UNREFERENCED_PARAMETER(argv_p); 786 UNREFERENCED_PARAMETER(argv_p);
782 } 787 }
783 #endif 788 #endif
784 789
785 EXTERN_C_END 790 EXTERN_C_END
786 791
787 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */ 792 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/osx/thread_suspension.c ('k') | src/trusted/service_runtime/sel_ldr_standard.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698