mirror of
https://github.com/drasko/codezero.git
synced 2026-04-18 01:39:05 +02: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:
@@ -32,6 +32,7 @@ struct boot_resources {
|
||||
struct container_head {
|
||||
int ncont;
|
||||
struct link list;
|
||||
struct spinlock lock;
|
||||
};
|
||||
|
||||
static inline void
|
||||
@@ -39,6 +40,7 @@ container_head_init(struct container_head *chead)
|
||||
{
|
||||
chead->ncont = 0;
|
||||
link_init(&chead->list);
|
||||
spin_lock_init(&chead->lock);
|
||||
}
|
||||
|
||||
/* Hash table for all existing tasks */
|
||||
|
||||
Reference in New Issue
Block a user