mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
In order to do resource recycling we need a table structure. In the search of one, we concluded that a task list will make things easier when we start adding COPY and NEW space handling. This commit is for utcb recycling. Now, it does not support thread trees more than one level depth. Thus, to be able to test it, we preferred l4thread_destroy instead of l4thread_exit.
19 lines
482 B
C
19 lines
482 B
C
/*
|
|
* Thread creation userspace helpers
|
|
*
|
|
* Copyright (C) 2009 B Labs Ltd.
|
|
*/
|
|
#ifndef __LIB_THREAD_H__
|
|
#define __LIB_THREAD_H__
|
|
|
|
int set_stack_params(unsigned long stack_top,
|
|
unsigned long stack_bottom,
|
|
unsigned long stack_size);
|
|
int set_utcb_params(unsigned long utcb_start, unsigned long utcb_end);
|
|
|
|
int l4thread_create(struct task_ids *ids, unsigned int flags,
|
|
int (*func)(void *), void *arg);
|
|
void l4thread_kill(struct task_ids *ids);
|
|
|
|
#endif /* __LIB_THREAD_H__ */
|