]> Zhao Yanbai Git Server - minix.git/commitdiff
Tightened generation size - don't count process numbers more than once
authorBen Gras <ben@minix3.org>
Tue, 7 Mar 2006 15:44:34 +0000 (15:44 +0000)
committerBen Gras <ben@minix3.org>
Tue, 7 Mar 2006 15:44:34 +0000 (15:44 +0000)
include/minix/endpoint.h

index 8f7aa5d31381d989ef8d84be46d18df6e7317a75..97a77876393492f77d8bcb33269d7ad43d19d153 100644 (file)
@@ -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. */