dde_ipxe: increase Slab backend alloc to 2 MiB

Fixes #2121.
This commit is contained in:
Josef Söntgen 2016-10-07 15:03:47 +02:00 committed by Christian Helmuth
parent 4076472844
commit 3f0dfe7956

View File

@ -437,7 +437,7 @@ struct Slab_backend_alloc : public Genode::Allocator,
public Genode::Region_map_client public Genode::Region_map_client
{ {
enum { enum {
VM_SIZE = 1024 * 1024, VM_SIZE = 2 * 1024 * 1024,
BLOCK_SIZE = 64 * 1024, BLOCK_SIZE = 64 * 1024,
ELEMENTS = VM_SIZE / BLOCK_SIZE, ELEMENTS = VM_SIZE / BLOCK_SIZE,
}; };
@ -546,13 +546,12 @@ struct Slab
NUM_SLABS = (SLAB_STOP_LOG2 - SLAB_START_LOG2) + 1, NUM_SLABS = (SLAB_STOP_LOG2 - SLAB_START_LOG2) + 1,
}; };
Slab_backend_alloc &_back_alloc;
Slab_alloc *_allocator[NUM_SLABS]; Slab_alloc *_allocator[NUM_SLABS];
Genode::addr_t _start; Genode::addr_t _start;
Genode::addr_t _end; Genode::addr_t _end;
Slab(Slab_backend_alloc &alloc) Slab(Slab_backend_alloc &alloc)
: _back_alloc(alloc), _start(alloc.start()), _end(alloc.end()) : _start(alloc.start()), _end(alloc.end())
{ {
for (unsigned i = 0; i < NUM_SLABS; i++) for (unsigned i = 0; i < NUM_SLABS; i++)
_allocator[i] = new (Genode::env()->heap()) _allocator[i] = new (Genode::env()->heap())