diff options
author | Jinhyung Choi <jinhyung2.choi@samsung.com> | 2014-04-23 19:15:31 +0900 |
---|---|---|
committer | Jinhyung Choi <jinhyung2.choi@samsung.com> | 2014-04-23 19:15:31 +0900 |
commit | 717a77f5b63fd2911c90cf459e779bd609e3c638 (patch) | |
tree | db08f54f4237e306ad4bdc956d8c3dc4617dcb62 | |
parent | c870218592a52ab1d03216911728f5b01592ed29 (diff) | |
download | qemu-717a77f5b63fd2911c90cf459e779bd609e3c638.tar.gz qemu-717a77f5b63fd2911c90cf459e779bd609e3c638.tar.bz2 qemu-717a77f5b63fd2911c90cf459e779bd609e3c638.zip |
booting: bypassing envp args from emulator main to qemu main
Change-Id: I5b55105531b21b28853faf4e4717b81efeb5e342
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
-rw-r--r-- | tizen/src/emulator.c | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/tizen/src/emulator.c b/tizen/src/emulator.c index 0bd636caa3..d4bea6be9a 100644 --- a/tizen/src/emulator.c +++ b/tizen/src/emulator.c @@ -520,7 +520,11 @@ void prepare_maru(void) int qemu_main(int argc, char **argv, char **envp); +#ifdef CONFIG_LINUX +static int emulator_main(int argc, char *argv[], char **envp) +#else static int emulator_main(int argc, char *argv[]) +#endif { parse_options(argc, argv, &_skin_argc, &_skin_argv, &_qemu_argc, &_qemu_argv); @@ -556,20 +560,17 @@ static int emulator_main(int argc, char *argv[]) socket_init(); INFO("qemu main start!\n"); +#ifdef CONFIG_LINUX + qemu_main(_qemu_argc, _qemu_argv, envp); +#else qemu_main(_qemu_argc, _qemu_argv, NULL); - +#endif exit_emulator(); return 0; } -#ifndef CONFIG_DARWIN -int main(int argc, char *argv[]) -{ - maru_register_exception_handler(); - return emulator_main(argc, argv); -} -#else +#ifdef CONFIG_DARWIN int g_argc; static void* main_thread(void* args) @@ -601,5 +602,17 @@ int main(int argc, char *argv[]) return 0; } +#elif defined (CONFIG_LINUX) +int main(int argc, char *argv[], char **envp) +{ + maru_register_exception_handler(); + return emulator_main(argc, argv, envp); +} +#else +int main(int argc, char *argv[]) +{ + maru_register_exception_handler(); + return emulator_main(argc, argv); +} #endif |