Pistachio: limit max threads per PD to 128

This change avoids cap ref-count overflows when creating many threads
as done by the thread test.
This commit is contained in:
Norman Feske 2016-07-12 15:44:43 +02:00
parent 57ec61fb4b
commit 02e50ce5d7

View File

@ -37,7 +37,7 @@ namespace Genode {
*/
enum {
PD_BITS = 9,
THREAD_BITS = 9,
THREAD_BITS = 7,
VERSION_BITS = 14 - 1, /* preserve 1 bit, see 'make_l4_id' */
PD_FIRST = 0,
PD_MAX = (1 << PD_BITS) - 1,