part_blk: increase ep stack size and bulk buffer

* Increase entrypoint stack size for part_blk server,
  since it crashes on 64 bit
* Consider packet alignment in bulk buffer size calculation of test-blk-cli
This commit is contained in:
Stefan Kalkowski 2013-12-18 16:13:29 +01:00 committed by Norman Feske
parent af86e33c3f
commit ea9c0e20ba
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,7 @@ int main()
return 1;
}
enum { STACK_SIZE = 512 * sizeof(Genode::size_t) };
enum { STACK_SIZE = 1024 * sizeof(Genode::size_t) };
static Cap_connection cap;
static Rpc_entrypoint ep(&cap, STACK_SIZE, "part_ep");
static Block::Root block_root(&ep, env()->heap(), receiver);

View File

@ -69,7 +69,8 @@ class Test
{
return bulk +
sizeof(Block::Session::Tx_policy::Ack_queue) +
sizeof(Block::Session::Tx_policy::Submit_queue);
sizeof(Block::Session::Tx_policy::Submit_queue) +
(1 << Block::Packet_descriptor::PACKET_ALIGNMENT) - 1;
}
void _ack_avail(unsigned) { ack_avail(); }