mirror of
https://github.com/drasko/codezero.git
synced 2026-01-15 04:13:16 +01:00
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:
@@ -48,7 +48,6 @@ int sys_getid(struct task_ids *ids)
|
||||
ids->tid = this->tid;
|
||||
ids->spid = this->space->spid;
|
||||
ids->tgid = this->tgid;
|
||||
ids->cid = this->container->cid;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -346,7 +346,7 @@ int thread_create(struct task_ids *ids, unsigned int flags)
|
||||
}
|
||||
}
|
||||
|
||||
if (!(new = tcb_alloc_init()))
|
||||
if (!(new = tcb_alloc_init(curcont->cid)))
|
||||
return -ENOMEM;
|
||||
|
||||
/* Set up new thread space by using space id and flags */
|
||||
|
||||
Reference in New Issue
Block a user