mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
This patch increases the stack size of entrypoint threads in the PCI and PS/2 drivers, in the Terminal server and in the Signal service for 64-bit Genode/Fiasco.OC built with -O0. Fixes #198.
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
/*
|
|
* \brief PCI-bus driver
|
|
* \author Norman Feske
|
|
* \date 2008-01-28
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2008-2012 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.
|
|
*/
|
|
|
|
#include <base/env.h>
|
|
#include <base/printf.h>
|
|
#include <base/sleep.h>
|
|
#include <cap_session/connection.h>
|
|
|
|
#include "pci_session_component.h"
|
|
#include "pci_device_config.h"
|
|
|
|
using namespace Genode;
|
|
using namespace Pci;
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
printf("PCI driver started\n");
|
|
|
|
/*
|
|
* Initialize server entry point
|
|
*/
|
|
enum { STACK_SIZE = sizeof(addr_t)*1024 };
|
|
static Cap_connection cap;
|
|
static Rpc_entrypoint ep(&cap, STACK_SIZE, "pci_ep");
|
|
|
|
/*
|
|
* Use sliced heap to allocate each session component at a separate
|
|
* dataspace.
|
|
*/
|
|
static Sliced_heap sliced_heap(env()->ram_session(), env()->rm_session());
|
|
|
|
/*
|
|
* Let the entry point serve the PCI root interface
|
|
*/
|
|
static Pci::Root root(&ep, &sliced_heap);
|
|
env()->parent()->announce(ep.manage(&root));
|
|
|
|
Genode::sleep_forever();
|
|
return 0;
|
|
}
|