2013-08-09 15:04:52 +02:00
|
|
|
/*
|
|
|
|
* \brief main() wrapper for customizing main()'s stack size
|
|
|
|
* \author Christian Prochaska
|
|
|
|
* \date 2008-08-20
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2008-2013 Genode Labs GmbH
|
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef QT_MAIN_STACK_SIZE
|
|
|
|
|
2014-04-30 14:23:20 +02:00
|
|
|
#include <base/thread.h>
|
2013-08-09 15:04:52 +02:00
|
|
|
|
|
|
|
using namespace Genode;
|
|
|
|
|
|
|
|
extern int qt_main(int argc, char *argv[]);
|
|
|
|
|
|
|
|
#define qt_main main
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2016-05-04 12:27:17 +02:00
|
|
|
Genode::Thread::myself()->stack_size(QT_MAIN_STACK_SIZE);
|
2013-08-09 15:04:52 +02:00
|
|
|
|
2014-04-30 14:23:20 +02:00
|
|
|
return qt_main(argc, argv);
|
2013-08-09 15:04:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* QT_MAIN_STACK_SIZE */
|