Use default component stack size where appropriate

This commit is contained in:
Christian Helmuth 2016-11-28 15:13:14 +01:00
parent 7eabe482b6
commit 53271d8c5f
89 changed files with 95 additions and 306 deletions

View File

@ -146,7 +146,7 @@ namespace Server
char const *name() { return "sync_ep"; }
size_t stack_size() { return 2 * 1024 * sizeof(long); }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint & ep) { static Main main(ep); }
}

View File

@ -16,6 +16,7 @@
#include <base/thread.h>
#include <base/log.h>
#include <base/snprintf.h>
#include <base/component.h>
#include <util/touch.h>
#include <util/retry.h>
@ -728,11 +729,4 @@ Main::Main(Env &env) : env(env)
}
/***************
** Component **
***************/
namespace Component {
Genode::size_t stack_size() { return 2*1024*sizeof(long); }
void construct(Genode::Env &env) { static Main main(env); }
}
void Component::construct(Genode::Env &env) { static Main main(env); }

View File

@ -143,5 +143,4 @@ Main::Main(Genode::Env &env) : env(env)
}
}
Genode::size_t Component::stack_size() { return 8*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Main inst(env); }

View File

@ -333,9 +333,6 @@ static void test_create_as_many_threads(Env &env)
}
size_t Component::stack_size() { return 16*1024*sizeof(long); }
void Component::construct(Env &env)
{
log("--- thread test started ---");

View File

@ -537,8 +537,4 @@ struct Main
** Component **
***************/
namespace Component {
char const *name() { return "audio_drv_ep"; }
size_t stack_size() { return 8*1024*sizeof(long); }
void construct(Genode::Env &env) { static Main server(env); }
}
void Component::construct(Genode::Env &env) { static Main server(env); }

View File

@ -159,7 +159,7 @@ struct Main
************/
namespace Server {
char const *name() { return "nic_drv_ep"; }
size_t stack_size() { return 2*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
char const *name() { return "nic_drv_ep"; }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
}

View File

@ -108,9 +108,4 @@ static void run_linux(void * m)
}
Genode::size_t Component::stack_size() {
return 8*1024*sizeof(long); }
void Component::construct(Genode::Env &env) {
static Main m(env); }
void Component::construct(Genode::Env &env) { static Main m(env); }

View File

@ -16,8 +16,4 @@
extern void start_usb_driver(Genode::Env &env);
Genode::size_t Component::stack_size() {
return 4*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { start_usb_driver(env); }

View File

@ -254,7 +254,4 @@ struct Main
};
namespace Component {
Genode::size_t stack_size() { return 32 * 1024 * sizeof(long); }
void construct(Genode::Env &env) { static Main server(env); }
}
void Component::construct(Genode::Env &env) { static Main server(env); }

View File

@ -317,7 +317,7 @@ struct Terminal::Main
namespace Server {
char const *name() { return "usb_terminal_ep"; };
size_t stack_size() { return 2*1024*sizeof(long); }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep)
{

View File

@ -120,7 +120,3 @@ void Component::construct(Genode::Env &env)
log("--- Framebuffer controller ---\n");
static Framebuffer_controller controller(env);
}
size_t Component::stack_size() {
return 4*1024*sizeof(long); }

View File

@ -48,5 +48,4 @@ struct Main
};
Genode::size_t Component::stack_size() { return 4 * 1024 * sizeof(long); }
void Component::construct(Genode::Env &env) { static Main inst(env); }
void Component::construct(Genode::Env &env) { static Main inst(env); }

View File

@ -514,12 +514,4 @@ struct File_system::Main
};
/**********************
** Component framework **
**********************/
namespace Component {
Genode::size_t stack_size() { return 4 * 1024 * sizeof(long); }
void construct(Genode::Env &env) { static File_system::Main inst(env); }
}
void Component::construct(Genode::Env &env) { static File_system::Main inst(env); }

View File

@ -199,7 +199,4 @@ struct Cpu_sampler::Main : Thread_list_change_handler
** Component **
***************/
namespace Component {
Genode::size_t stack_size() { return 4*1024*sizeof(Genode::addr_t); }
void construct(Genode::Env &env) { static Cpu_sampler::Main inst(env); }
}
void Component::construct(Genode::Env &env) { static Cpu_sampler::Main inst(env); }

View File

@ -106,5 +106,4 @@ struct Main
};
Genode::size_t Component::stack_size() { return 2*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Main m(env); }
void Component::construct(Genode::Env &env) { static Main m(env); }

View File

@ -517,7 +517,7 @@ namespace Server {
char const *name() { return "nit_fader_ep"; }
size_t stack_size() { return 4*1024*sizeof(long); }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep)
{

View File

@ -721,5 +721,4 @@ struct Main
};
Genode::size_t Component::stack_size() { return 4096*sizeof(long); }
void Component::construct(Genode::Env &env) { static Main inst(env); }

View File

@ -149,7 +149,7 @@ namespace Server {
char const *name() { return "desktop_ep"; }
size_t stack_size() { return 4*1024*sizeof(long); }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep)
{

View File

@ -17,9 +17,6 @@
#include <hello_session/connection.h>
Genode::size_t Component::stack_size() { return 64*1024; }
void Component::construct(Genode::Env &env)
{
Hello::Connection hello(env);

View File

@ -83,9 +83,6 @@ struct Hello::Main
};
Genode::size_t Component::stack_size() { return 64*1024; }
void Component::construct(Genode::Env &env)
{
static Hello::Main main(env);

View File

@ -303,5 +303,4 @@ ACPI_STATUS AcpiOsInstallInterruptHandler(UINT32 irq, ACPI_OSD_HANDLER handler,
}
Genode::size_t Component::stack_size() { return 4*1024*sizeof(Genode::addr_t); }
void Component::construct(Genode::Env &env) { static Acpica::Main main(env); }

View File

@ -402,5 +402,5 @@ struct Transform::Main {
}
};
Genode::size_t Component::stack_size() { return 2 * 1024*sizeof(Genode::addr_t); }
void Component::construct(Genode::Env &env) { static Transform::Main main(env); }

View File

@ -544,10 +544,5 @@ struct File_system::Main
**********************/
char const * Server::name() { return "fuse_fs_ep"; }
/**
* The large stack is needed because FUSE file system may call
* libc functions that require a large stack, e.g. timezone
* related functions.
*/
Genode::size_t Server::stack_size() { return 8192 * sizeof(long); }
Genode::size_t Server::stack_size() { return 16*1024*sizeof(long); }
void Server::construct(Server::Entrypoint &ep) { static File_system::Main inst(ep); }

View File

@ -28,7 +28,7 @@ install_config {
<any-service><parent/><any-child/></any-service>
</default-route>
<start name="timer">
<resource name="RAM" quantum="10M"/>
<resource name="RAM" quantum="1M"/>
<provides><service name="Timer"/></provides>
</start>
<start name="client">

View File

@ -121,5 +121,4 @@ void Rom_logger::Main::_handle_update()
}
Genode::size_t Component::stack_size() { return 4*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Rom_logger::Main main(env); }

View File

@ -161,7 +161,7 @@ namespace Server {
char const *name() { return "rom_to_file_ep"; }
size_t stack_size() { return 4*1024*sizeof(long); }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep)
{

View File

@ -230,7 +230,7 @@ namespace Server {
char const *name() { return "trace_subject_reporter"; }
size_t stack_size() { return 4*1024*sizeof(long); }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep)
{

View File

@ -433,6 +433,6 @@ struct Usb_filter::Main
namespace Server {
char const *name() { return "usb_report_filter_ep"; }
size_t stack_size() { return 4*1024*sizeof(addr_t); }
size_t stack_size() { return 16*1024*sizeof(addr_t); }
void construct(Entrypoint &ep) { static Usb_filter::Main main(ep); }
}

View File

@ -241,7 +241,7 @@ namespace Server {
char const *name() { return "ep"; }
size_t stack_size() { return 4*1024*sizeof(long); }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Xray_trigger::Main main(ep); }
}

View File

@ -47,11 +47,4 @@ struct Acpi::Main
};
/***************
** Component **
***************/
namespace Component {
Genode::size_t stack_size() { return 2*1024*sizeof(long); }
void construct(Genode::Env &env) { static Acpi::Main main(env); }
}
void Component::construct(Genode::Env &env) { static Acpi::Main main(env); }

View File

@ -186,7 +186,5 @@ struct Block::Main
};
namespace Component {
Genode::size_t stack_size() { return 2 * 1024 * sizeof(long); }
void construct(Genode::Env &env) { static Block::Main server(env); }
}
void Component::construct(Genode::Env &env) { static Block::Main server(env); }

View File

@ -155,7 +155,7 @@ struct Main
************/
namespace Server {
char const *name() { return "fb_drv_ep"; }
size_t stack_size() { return 1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
char const *name() { return "fb_drv_ep"; }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
}

View File

@ -57,7 +57,7 @@ struct Main
************/
namespace Server {
char const *name() { return "gpio_drv_ep"; }
size_t stack_size() { return 1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
char const *name() { return "gpio_drv_ep"; }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
}

View File

@ -59,7 +59,7 @@ struct Main
************/
namespace Server {
char const *name() { return "gpio_drv_ep"; }
size_t stack_size() { return 1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
char const *name() { return "gpio_drv_ep"; }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
}

View File

@ -58,7 +58,7 @@ struct Main
************/
namespace Server {
char const *name() { return "gpio_drv_ep"; }
size_t stack_size() { return 1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
char const *name() { return "gpio_drv_ep"; }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
}

View File

@ -98,7 +98,7 @@ struct Main
************/
namespace Server {
char const *name() { return "gpio_drv_ep"; }
size_t stack_size() { return 1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
char const *name() { return "gpio_drv_ep"; }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
}

View File

@ -95,10 +95,4 @@ struct Main
};
/***************
** Component **
***************/
Genode::size_t Component::stack_size() { return 2048*sizeof(long); }
void Component::construct(Genode::Env &env) { static Main server(env); }

View File

@ -62,7 +62,7 @@ struct Main
************/
namespace Server {
char const *name() { return "input_drv_ep"; }
size_t stack_size() { return 2*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
char const *name() { return "input_drv_ep"; }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
}

View File

@ -69,7 +69,7 @@ struct Main
************/
namespace Server {
char const *name() { return "ps2_drv_ep"; }
size_t stack_size() { return 2048*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
char const *name() { return "ps2_drv_ep"; }
size_t stack_size() { return 8*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
}

View File

@ -87,7 +87,7 @@ struct Main
************/
namespace Server {
char const *name() { return "ps2_drv_ep"; }
size_t stack_size() { return 2048*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
char const *name() { return "ps2_drv_ep"; }
size_t stack_size() { return 8*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
}

View File

@ -76,5 +76,5 @@ struct Server::Main
char const * Server::name() { return "nic_ep"; }
size_t Server::stack_size() { return 2*1024*sizeof(long); }
size_t Server::stack_size() { return 16*1024*sizeof(long); }
void Server::construct(Entrypoint &ep) { static Main main(ep); }

View File

@ -74,9 +74,6 @@ class Root : public Genode::Root_component<Lan9118, Genode::Single_client>
};
Genode::size_t Component::stack_size() { return 2*1024*sizeof(long); }
void Component::construct(Genode::Env &env)
{
static Genode::Heap heap(env.ram(), env.rm());

View File

@ -234,5 +234,5 @@ struct Server::Main
char const * Server::name() { return "nic_ep"; }
Genode::size_t Server::stack_size() { return 2*1024*sizeof(long); }
Genode::size_t Server::stack_size() { return 16*1024*sizeof(long); }
void Server::construct(Entrypoint &ep) { static Main main(ep); }

View File

@ -141,5 +141,5 @@ struct Platform::Main
}
};
Genode::size_t Component::stack_size() { return STACK_SIZE; }
void Component::construct(Genode::Env &env) { static Platform::Main main(env); }

View File

@ -54,5 +54,4 @@ struct Main
};
Genode::size_t Component::stack_size() { return 2*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Main m(env); }
void Component::construct(Genode::Env &env) { static Main m(env); }

View File

@ -173,7 +173,7 @@ struct Main
************/
namespace Server {
char const *name() { return "sd_card_bench_ep"; }
size_t stack_size() { return 2*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
char const *name() { return "sd_card_bench_ep"; }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
}

View File

@ -51,5 +51,4 @@ struct Main
};
Genode::size_t Component::stack_size() { return 2*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Main m(env); }
void Component::construct(Genode::Env &env) { static Main m(env); }

View File

@ -162,7 +162,7 @@ struct Main
************/
namespace Server {
char const *name() { return "sd_card_bench_ep"; }
size_t stack_size() { return 2*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
char const *name() { return "sd_card_bench_ep"; }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep) { static Main server(ep); }
}

View File

@ -51,5 +51,4 @@ struct Main
};
Genode::size_t Component::stack_size() { return 2*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Main m(env); }
void Component::construct(Genode::Env &env) { static Main m(env); }

View File

@ -64,5 +64,5 @@ struct Main
}
};
Genode::size_t Component::stack_size() { return 2*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Main m(env); }
void Component::construct(Genode::Env &env) { static Main m(env); }

View File

@ -56,5 +56,4 @@ struct Main
};
Genode::size_t Component::stack_size() { return 2*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Main m(env); }
void Component::construct(Genode::Env &env) { static Main m(env); }

View File

@ -39,9 +39,5 @@ class Main
};
/***************
** Component **
***************/
size_t Component::stack_size() { return 2 * 1024 * sizeof(addr_t); }
void Component::construct(Env &env) { static Main main(env); }
size_t Component::stack_size() { return 4*1024*sizeof(addr_t); }
void Component::construct(Env &env) { static Main main(env); }

View File

@ -35,10 +35,8 @@ struct Main
};
namespace Component {
Genode::size_t stack_size() { return 2048*sizeof(Genode::addr_t); }
void construct(Genode::Env &env) { static Main uart_drv(env); }
}
Genode::size_t Component::stack_size() { return 8*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Main uart_drv(env); }
Uart::Driver & Uart::Driver_factory::create(unsigned index, unsigned baudrate,

View File

@ -21,6 +21,7 @@
#include <base/rpc_server.h>
#include <util/arg_string.h>
#include <os/session_policy.h>
#include <base/component.h>
#include <root/component.h>
#include <uart_session/uart_session.h>

View File

@ -823,11 +823,4 @@ struct Usb::Main
};
/***************
** Component **
***************/
namespace Component {
size_t stack_size() { return 2*1024*sizeof(long); }
void construct(Genode::Env &env) { static Usb::Main main(env); }
}
void Component::construct(Genode::Env &env) { static Usb::Main main(env); }

View File

@ -82,9 +82,4 @@ struct Main
};
Genode::size_t Component::stack_size() {
return 2048*sizeof(Genode::addr_t); }
void Component::construct(Genode::Env &env) {
static Main server(env); }
void Component::construct(Genode::Env &env) { static Main server(env); }

View File

@ -215,13 +215,4 @@ struct Clipboard::Main : Rom::Module::Read_policy, Rom::Module::Write_policy
};
/***************
** Component **
***************/
namespace Component {
Genode::size_t stack_size() { return 4*1024*sizeof(long); }
void construct(Genode::Env &env) { static Clipboard::Main main(env); }
}
void Component::construct(Genode::Env &env) { static Clipboard::Main main(env); }

View File

@ -264,13 +264,4 @@ struct Dynamic_rom::Main
};
/***************
** Component **
***************/
namespace Component {
Genode::size_t stack_size() { return 4*1024*sizeof(long); }
void construct(Genode::Env &env) { static Dynamic_rom::Main main(env); }
}
void Component::construct(Genode::Env &env) { static Dynamic_rom::Main main(env); }

View File

@ -193,12 +193,6 @@ class Fs_log::Root_component :
};
/***************
** Component **
***************/
Genode::size_t Component::stack_size() { return 4*1024*sizeof(long); }
void Component::construct(Genode::Env &env)
{
static Genode::Sliced_heap sliced_heap { env.ram(), env.rm() };

View File

@ -358,7 +358,6 @@ class Rom_root : public Genode::Root_component<Rom_session_component>
}
};
Genode::size_t Component::stack_size() { return 2*1024*sizeof(long); }
void Component::construct(Genode::Env &env)
{

View File

@ -139,10 +139,4 @@ struct Input_merger::Main
};
/***************
** Component **
***************/
Genode::size_t Component::stack_size() { return 4*1024*sizeof(Genode::addr_t); }
void Component::construct(Genode::Env &env) { static Input_merger::Main inst(env); }

View File

@ -116,7 +116,7 @@ namespace Server {
char const *name() { return "log_report_ep"; }
size_t stack_size() { return 4*1024*sizeof(long); }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep)
{

View File

@ -188,7 +188,7 @@ namespace Server {
char const *name() { return "log_terminal_ep"; }
size_t stack_size() { return 4*1024*sizeof(long); }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep)
{

View File

@ -725,8 +725,4 @@ struct Mixer::Main
};
Genode::size_t Component::stack_size() {
return 4*1024*sizeof(Genode::addr_t); }
void Component::construct(Genode::Env &env) {
static Mixer::Main inst(env); }
void Component::construct(Genode::Env &env) { static Mixer::Main inst(env); }

View File

@ -65,9 +65,4 @@ struct Main
};
Genode::size_t Component::stack_size() {
return 2048*sizeof(Genode::addr_t); }
void Component::construct(Genode::Env &env) {
static Main nic_bridge(env); }
void Component::construct(Genode::Env &env) { static Main nic_bridge(env); }

View File

@ -209,7 +209,7 @@ namespace Server {
char const *name() { return "nicloop_ep"; }
size_t stack_size() { return 2*1024*sizeof(long); }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep)
{

View File

@ -56,9 +56,4 @@ Main::Main(Env &env)
}
/***************
** Component **
***************/
size_t Component::stack_size() { return 4 * 1024 * sizeof(addr_t); }
void Component::construct(Env &env) { static Main main(env); }
void Component::construct(Env &env) { static Main main(env); }

View File

@ -346,11 +346,5 @@ struct Nit_fb::Main : View_updater
};
/***************
** Component **
***************/
Genode::size_t Component::stack_size() { return 4*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Nit_fb::Main inst(env); }

View File

@ -1397,13 +1397,4 @@ void Nitpicker::Main::handle_fb_mode()
}
/***************
** Component **
***************/
namespace Component {
Genode::size_t stack_size() { return 4*1024*sizeof(long); }
void construct(Genode::Env &env) { static Nitpicker::Main nitpicker(env); }
}
void Component::construct(Genode::Env &env) { static Nitpicker::Main nitpicker(env); }

View File

@ -90,9 +90,4 @@ Block::Partition_table & Main::_table()
}
Genode::size_t Component::stack_size() {
return 2048*sizeof(Genode::addr_t); }
void Component::construct(Genode::Env &env) {
static Main main(env); }
void Component::construct(Genode::Env &env) { static Main main(env); }

View File

@ -203,11 +203,4 @@ struct Main
};
/***************
** Component **
***************/
namespace Component {
Genode::size_t stack_size() { return 2*1024*sizeof(long); }
void construct(Genode::Env &env) { static Main server(env); }
}
void Component::construct(Genode::Env &env) { static Main server(env); }

View File

@ -656,5 +656,5 @@ struct File_system::Main
**********************/
char const * Server::name() { return "ram_fs_ep"; }
Genode::size_t Server::stack_size() { return 2048 * sizeof(long); }
Genode::size_t Server::stack_size() { return 16*1024*sizeof(long); }
void Server::construct(Server::Entrypoint &ep) { static File_system::Main inst(ep); }

View File

@ -49,11 +49,5 @@ struct Report_rom::Main
};
/***************
** Component **
***************/
Genode::size_t Component::stack_size() { return 4*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Report_rom::Main main(env); }

View File

@ -123,5 +123,4 @@ struct Main
};
Genode::size_t Component::stack_size() { return 2*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Main server(env); }
void Component::construct(Genode::Env &env) { static Main server(env); }

View File

@ -337,7 +337,7 @@ namespace Server {
char const *name() { return "conditional_rom_ep"; }
size_t stack_size() { return 4*1024*sizeof(long); }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep)
{

View File

@ -1053,5 +1053,5 @@ struct File_system::Main
**********************/
char const * Server::name() { return "trace_fs_ep"; }
Genode::size_t Server::stack_size() { return 32 * 2048 * sizeof(long); }
Genode::size_t Server::stack_size() { return 64*1024*sizeof(long); }
void Server::construct(Server::Entrypoint &ep) { static File_system::Main inst(ep); }

View File

@ -662,12 +662,6 @@ class Vfs_server::Root :
};
/***************
** Component **
***************/
Genode::size_t Component::stack_size() { return 2*1024*sizeof(long); }
void Component::construct(Genode::Env &env)
{
static Genode::Sliced_heap sliced_heap { &env.ram(), &env.rm() };

View File

@ -156,7 +156,7 @@ struct Test::Main
namespace Server {
char const *name() { return "block_bench_ep"; };
Genode::size_t stack_size() { return 2*1024*sizeof(long); }
Genode::size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep)
{

View File

@ -382,10 +382,6 @@ void perform(Genode::Entrypoint &ep, Genode::Heap &heap, unsigned timeo_ms = 0)
}
Genode::size_t Component::stack_size() {
return 4096*sizeof(Genode::addr_t); }
void Component::construct(Genode::Env &env)
{
using namespace Genode;

View File

@ -137,9 +137,4 @@ struct Main
};
Genode::size_t Component::stack_size() {
return 2048*sizeof(Genode::addr_t); }
void Component::construct(Genode::Env &env) {
static Main server(env); }
void Component::construct(Genode::Env &env) { static Main server(env); }

View File

@ -424,7 +424,7 @@ namespace Server {
char const *name() { return "ep"; }
size_t stack_size() { return 4*1024*sizeof(long); }
size_t stack_size() { return 16*1024*sizeof(long); }
void construct(Entrypoint &ep)
{

View File

@ -121,5 +121,4 @@ struct Main
};
Genode::size_t Component::stack_size() { return 2*1024*sizeof(long); }
void Component::construct(Genode::Env &env) { static Main m(env); }
void Component::construct(Genode::Env &env) { static Main m(env); }

View File

@ -157,7 +157,3 @@ void Component::construct(Genode::Env &env)
Genode::log("--- Test framebuffer ---\n");
static Test_environment te(env.ep());
}
Genode::size_t Component::stack_size() {
return 4*1024*sizeof(long); }

View File

@ -106,7 +106,3 @@ void Component::construct(Genode::Env &env)
log("--- Test input ---\n");
static Test_environment te(env);
}
Genode::size_t Component::stack_size() {
return 4*1024*sizeof(long); }

View File

@ -48,13 +48,6 @@ struct Hexdump
};
namespace Component {
Genode::size_t stack_size() { return 4*1024*sizeof(long); }
void construct(Genode::Env &env);
}
void Component::construct(Genode::Env &env)
{
Attached_rom_dataspace ds(env, "/test.txt");

View File

@ -52,9 +52,4 @@ class Main
};
/***************
** Component **
***************/
size_t Component::stack_size() { return 4 * 1024 * sizeof(addr_t); }
void Component::construct(Env &env) { static Main main(env); }
void Component::construct(Env &env) { static Main main(env); }

View File

@ -63,7 +63,7 @@ set config {
</config>
</start>
<start name="gdb_monitor">
<resource name="RAM" quantum="4M"/>
<resource name="RAM" quantum="5M"/>
<config>
<target name="test-gdb_monitor">
<config>

View File

@ -127,7 +127,7 @@ append_if [have_spec gpio] config {
append_if $use_nic_bridge config {
<start name="nic_bridge">
<resource name="RAM" quantum="4M"/>
<resource name="RAM" quantum="5M"/>
<provides><service name="Nic"/></provides>
<config>}
append_if [expr $use_nic_bridge && [have_spec linux]] config "

View File

@ -288,6 +288,6 @@ struct Main
namespace Server {
char const *name() { return "openvpn_ep"; }
Genode::size_t stack_size() { return 8 * 1024 * sizeof (addr_t); }
Genode::size_t stack_size() { return 16*1024*sizeof(addr_t); }
void construct(Entrypoint &ep) { static Main server(ep); }
}