mirror of
https://github.com/drasko/codezero.git
synced 2026-04-20 02:39:04 +02: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 *thread_id_pool;
|
||||||
extern struct id_pool *space_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(l4id_t tid);
|
||||||
struct ktcb *tcb_find_by_space(l4id_t tid);
|
struct ktcb *tcb_find_by_space(l4id_t tid);
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
/* ID pools for threads and spaces. */
|
/* ID pools for threads and spaces. */
|
||||||
struct id_pool *thread_id_pool;
|
struct id_pool *thread_id_pool;
|
||||||
struct id_pool *space_id_pool;
|
struct id_pool *space_id_pool;
|
||||||
struct id_pool *tgroup_id_pool;
|
|
||||||
|
|
||||||
/* Hash table for all existing tasks */
|
/* Hash table for all existing tasks */
|
||||||
struct ktcb_list {
|
struct ktcb_list {
|
||||||
|
|||||||
@@ -337,10 +337,9 @@ void init_tasks()
|
|||||||
/* Initialise thread and space id pools */
|
/* Initialise thread and space id pools */
|
||||||
thread_id_pool = id_pool_new_init(THREAD_IDS_MAX);
|
thread_id_pool = id_pool_new_init(THREAD_IDS_MAX);
|
||||||
space_id_pool = id_pool_new_init(SPACE_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.tid = id_new(thread_id_pool);
|
||||||
ids.spid = id_new(space_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 */
|
/* Initialise the global task and address space lists */
|
||||||
init_ktcb_list();
|
init_ktcb_list();
|
||||||
|
|||||||
Reference in New Issue
Block a user