mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
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:
parent
d0d35cd9dd
commit
92171e9b86
2
base-foc/src/base/env/cap_sel_alloc.cc
vendored
2
base-foc/src/base/env/cap_sel_alloc.cc
vendored
@ -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;
|
||||
}
|
||||
|
@ -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> }
|
||||
|
||||
|
@ -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>}
|
||||
|
||||
|
@ -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">
|
||||
|
@ -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> }
|
||||
|
||||
|
@ -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
|
||||
|
@ -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>}
|
||||
|
||||
|
@ -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>}
|
||||
|
||||
|
@ -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>}
|
||||
|
||||
|
@ -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>}
|
||||
|
||||
|
@ -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>}
|
||||
|
||||
|
@ -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>}
|
||||
|
||||
|
@ -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>}
|
||||
|
||||
|
@ -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>}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user