mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
Removed thread group id pool.
We don't need a separate group id pool for now.
This commit is contained in:
@@ -130,7 +130,6 @@ static inline void set_task_ids(struct ktcb *task, struct task_ids *ids)
|
||||
|
||||
extern struct id_pool *thread_id_pool;
|
||||
extern struct id_pool *space_id_pool;
|
||||
extern struct id_pool *tgroup_id_pool;
|
||||
|
||||
struct ktcb *tcb_find(l4id_t tid);
|
||||
struct ktcb *tcb_find_by_space(l4id_t tid);
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
/* ID pools for threads and spaces. */
|
||||
struct id_pool *thread_id_pool;
|
||||
struct id_pool *space_id_pool;
|
||||
struct id_pool *tgroup_id_pool;
|
||||
|
||||
/* Hash table for all existing tasks */
|
||||
struct ktcb_list {
|
||||
|
||||
@@ -337,10 +337,9 @@ void init_tasks()
|
||||
/* Initialise thread and space id pools */
|
||||
thread_id_pool = id_pool_new_init(THREAD_IDS_MAX);
|
||||
space_id_pool = id_pool_new_init(SPACE_IDS_MAX);
|
||||
tgroup_id_pool = id_pool_new_init(TGROUP_IDS_MAX);
|
||||
ids.tid = id_new(thread_id_pool);
|
||||
ids.spid = id_new(space_id_pool);
|
||||
ids.tgid = id_new(tgroup_id_pool);
|
||||
ids.tgid = ids.tid;
|
||||
|
||||
/* Initialise the global task and address space lists */
|
||||
init_ktcb_list();
|
||||
|
||||
Reference in New Issue
Block a user