mirror of
https://github.com/drasko/codezero.git
synced 2026-11-15 05:20:21 +01:00
tcb_alloc_init of l4lib was clashing with mm0 definitions.
This commit is contained in:
@@ -36,7 +36,7 @@ struct global_list {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct tcb *find_task(int tid);
|
struct tcb *find_task(int tid);
|
||||||
struct tcb *tcb_alloc_init(struct tcb *parent, unsigned int flags);
|
struct tcb *l4_tcb_alloc_init(struct tcb *parent, unsigned int flags);
|
||||||
void global_add_task(struct tcb *task);
|
void global_add_task(struct tcb *task);
|
||||||
void global_remove_task(struct tcb *task);
|
void global_remove_task(struct tcb *task);
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ struct tcb *find_task(int tid)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct tcb *tcb_alloc_init(struct tcb *parent, unsigned int flags)
|
struct tcb *l4_tcb_alloc_init(struct tcb *parent, unsigned int flags)
|
||||||
{
|
{
|
||||||
struct tcb *task;
|
struct tcb *task;
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ int l4_thread_create(struct task_ids *ids, unsigned int flags,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate tcb for the child. */
|
/* Allocate tcb for the child. */
|
||||||
if (!(child = tcb_alloc_init(parent, flags))) {
|
if (!(child = l4_tcb_alloc_init(parent, flags))) {
|
||||||
// FIXME: What happens to utcb_head
|
// FIXME: What happens to utcb_head
|
||||||
printf("libl4thread: No heap space left.\n");
|
printf("libl4thread: No heap space left.\n");
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ static int set_utcb_addr(void)
|
|||||||
int err;
|
int err;
|
||||||
|
|
||||||
/* Create a task. */
|
/* Create a task. */
|
||||||
if (IS_ERR(task = tcb_alloc_init(0, 0)))
|
if (IS_ERR(task = l4_tcb_alloc_init(0, 0)))
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
/* Add child to the global task list. */
|
/* Add child to the global task list. */
|
||||||
|
|||||||
Reference in New Issue
Block a user