Fiasco.OC: Reduce capability-allocator size

The old variant provided 8K capability slots to all processes on core,
which increased binaries by 180 KB for the static allocator. I reduced it
to 4K capabilities stay under 100 KB overhead for the allocator.

Anyway, pci_drv and pl11x_drv need more RAM quota now: 2M for pl11x_drv
and 1M for pci_drv.
This commit is contained in:
Christian Helmuth 2012-02-28 10:48:37 +01:00
parent d0d35cd9dd
commit 92171e9b86
14 changed files with 15 additions and 14 deletions

View File

@ -19,6 +19,6 @@
Genode::Capability_allocator* Genode::cap_alloc()
{
static Genode::Capability_allocator_tpl<8192> _alloc;
static Genode::Capability_allocator_tpl<4096> _alloc;
return &_alloc;
}

View File

@ -73,7 +73,7 @@ set config {
append_if [have_spec pci] config {
<start name="pci_drv">
<resource name="RAM" quantum="512K"/>
<resource name="RAM" quantum="1M"/>
<provides> <service name="PCI"/> </provides>
</start> }

View File

@ -54,7 +54,7 @@ append_if [have_spec vesa] config {
append_if [have_spec pl11x] config {
<start name="pl11x_drv">
<resource name="RAM" quantum="1M"/>
<resource name="RAM" quantum="2M"/>
<provides><service name="Framebuffer"/></provides>
</start>}

View File

@ -58,7 +58,7 @@ set config {
append_if [have_spec pci] config {
<start name="pci_drv">
<resource name="RAM" quantum="512K"/>
<resource name="RAM" quantum="1M"/>
<provides> <service name="PCI"/> </provides>
</start>
<start name="atapi_drv">

View File

@ -78,7 +78,7 @@ set config {
append_if [have_spec pci] config {
<start name="pci_drv">
<resource name="RAM" quantum="512K"/>
<resource name="RAM" quantum="1M"/>
<provides> <service name="PCI"/> </provides>
</start> }

View File

@ -64,7 +64,7 @@ append_if [have_spec vesa] config {
append_if [have_spec pl11x] config {
<start name="pl11x_drv">
<resource name="RAM" quantum="1M"/>
<resource name="RAM" quantum="2M"/>
<provides><service name="Framebuffer"/></provides>
</start> }
@ -141,4 +141,5 @@ expect {
timeout { puts stderr "Error: Test execution timed out"; exit -2 }
}
puts "Test succeeded"
exec rm bin/initrd.gz

View File

@ -83,7 +83,7 @@ append_if [have_spec vesa] config {
append_if [have_spec pl11x] config {
<start name="pl11x_drv">
<resource name="RAM" quantum="1M"/>
<resource name="RAM" quantum="2M"/>
<provides><service name="Framebuffer"/></provides>
</start>}

View File

@ -71,7 +71,7 @@ append_if [have_spec vesa] config {
append_if [have_spec pl11x] config {
<start name="pl11x_drv">
<resource name="RAM" quantum="1M"/>
<resource name="RAM" quantum="2M"/>
<provides><service name="Framebuffer"/></provides>
</start>}

View File

@ -69,7 +69,7 @@ append_if [have_spec vesa] config {
append_if [have_spec pl11x] config {
<start name="pl11x_drv">
<resource name="RAM" quantum="1M"/>
<resource name="RAM" quantum="2M"/>
<provides><service name="Framebuffer"/></provides>
</start>}

View File

@ -60,7 +60,7 @@ append_if [have_spec vesa] config {
append_if [have_spec pl11x] config {
<start name="pl11x_drv">
<resource name="RAM" quantum="1M"/>
<resource name="RAM" quantum="2M"/>
<provides><service name="Framebuffer"/></provides>
</start>}

View File

@ -60,7 +60,7 @@ append_if [have_spec vesa] config {
append_if [have_spec pl11x] config {
<start name="pl11x_drv">
<resource name="RAM" quantum="1M"/>
<resource name="RAM" quantum="2M"/>
<provides><service name="Framebuffer"/></provides>
</start>}

View File

@ -62,7 +62,7 @@ append_if [have_spec vesa] config {
append_if [have_spec pl11x] config {
<start name="pl11x_drv">
<resource name="RAM" quantum="1M"/>
<resource name="RAM" quantum="2M"/>
<provides><service name="Framebuffer"/></provides>
</start>}

View File

@ -60,7 +60,7 @@ append_if [have_spec vesa] config {
append_if [have_spec pl11x] config {
<start name="pl11x_drv">
<resource name="RAM" quantum="1M"/>
<resource name="RAM" quantum="2M"/>
<provides><service name="Framebuffer"/></provides>
</start>}

View File

@ -60,7 +60,7 @@ append_if [have_spec vesa] config {
append_if [have_spec pl11x] config {
<start name="pl11x_drv">
<resource name="RAM" quantum="1M"/>
<resource name="RAM" quantum="2M"/>
<provides><service name="Framebuffer"/></provides>
</start>}