From: Ben Gras Date: Tue, 7 Mar 2006 15:44:34 +0000 (+0000) Subject: Tightened generation size - don't count process numbers more than once X-Git-Tag: v3.1.2a~290 X-Git-Url: http://zhaoyanbai.com/repos/pkcs11-tokens.html?a=commitdiff_plain;h=0cd9341f21f57686a60c017455aff45ab4faf9a6;p=minix.git Tightened generation size - don't count process numbers more than once --- diff --git a/include/minix/endpoint.h b/include/minix/endpoint.h index 8f7aa5d31..97a778763 100644 --- a/include/minix/endpoint.h +++ b/include/minix/endpoint.h @@ -15,8 +15,7 @@ * the generation size is big enough to start the next generation * above the highest magic number. */ -#define _ENDPOINT_MAX_PROC (_NR_PROCS) -#define _ENDPOINT_GENERATION_SIZE (NR_TASKS+_ENDPOINT_MAX_PROC+_MAX_MAGIC_PROC+1) +#define _ENDPOINT_GENERATION_SIZE (NR_TASKS+_MAX_MAGIC_PROC+1) #define _ENDPOINT_MAX_GENERATION (INT_MAX/_ENDPOINT_GENERATION_SIZE-1) /* Generation + Process slot number <-> endpoint. */