--- Gnu-Mach/ipc/ipc_entry.c 2020/09/02 04:36:56 1.1.1.1 +++ Gnu-Mach/ipc/ipc_entry.c 2020/09/02 04:45:08 1.1.1.3 @@ -25,7 +25,7 @@ * * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. - * + */ /* * File: ipc/ipc_entry.c * Author: Rich Draves @@ -34,11 +34,14 @@ * Primitive functions to manipulate translation entries. */ +#include +#include + #include #include #include #include -#include +#include #include #include #include @@ -48,7 +51,7 @@ #include #include -zone_t ipc_tree_entry_zone; +struct kmem_cache ipc_tree_entry_cache; /* * Routine: ipc_entry_tree_collision @@ -574,6 +577,7 @@ ipc_entry_grow_table(space) if (osize == size) { is_write_unlock(space); + printf_once("no more room for ipc_entry_grow_table in space %p\n", space); return KERN_NO_SPACE; } @@ -635,7 +639,7 @@ ipc_entry_grow_table(space) */ if (!it_entries_reallocable(oits)) - (void) memcpy((void *) table, (const void *) otable, + memcpy(table, otable, osize * sizeof(struct ipc_entry)); for (i = 0; i < osize; i++) @@ -831,6 +835,8 @@ ipc_entry_grow_table(space) #if MACH_KDB #include +#include + #define printf kdbprintf ipc_entry_t db_ipc_object_by_name(