Added means to search for threads in other containers

Thread ids now contain their container ids in the top 2 nibbles.
Threads on other containers can be addressed by changing those
two nibbles. The addressing of inter-container threads are
subject to capabilities.
This commit is contained in:
Bahadir Balban
2009-11-04 20:56:57 +02:00
parent 516efccd99
commit d9520adb55
15 changed files with 91 additions and 37 deletions

View File

@@ -402,8 +402,6 @@ void init_kernel_resources(struct kernel_resources *kres)
memcap_unmap(&kres->physmem_free, kernel_area->start,
kernel_area->end);
/* Initialize zombie pager list */
init_ktcb_list(&kres->zombie_list);
/* TODO:
* Add all virtual memory areas used by the kernel
@@ -529,7 +527,8 @@ void setup_kernel_resources(struct boot_resources *bootres,
* See how many containers we have. Assign next
* unused container id for kernel resources
*/
kres->cid = id_get(&kres->container_ids, bootres->nconts + 1);
//kres->cid = id_get(&kres->container_ids, bootres->nconts + 1);
kres->cid = id_get(&kres->container_ids, 0);
/* First initialize the list of non-memory capabilities */
cap = boot_capability_create();