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

Side by Side Diff: src/minsfi/untrusted/start.c

Issue 546883003: MinSFI: Passing arguments to the entry function (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 6 years, 3 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
(Empty)
1 /*
2 * Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 #include <unistd.h>
8
9 extern int main(int argc, char **argv);
10
11 /*
12 * This is the true entry point for untrusted code.
13 * See nacl_startup.h for the layout at the argument pointer.
jvoung (off chromium) 2014/09/10 17:04:29 I don't think nacl_startup.h will describe the sam
dbrazdil 2014/09/10 18:49:47 Done.
14 */
15 int _start(uint32_t info[]) {
16 int argc = info[0];
17 char **argv = (char**) (info + 1);
18
19 return main(argc, argv);
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698