diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-09-09 09:07:58 -0700 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2011-04-08 14:41:15 -0700 |
commit | 0c44fcf078132b1f2915b7df9fcf4724f9d96b23 (patch) | |
tree | 1e62f514e25c9dc13cf4efe072d607c7a32c94bc /core/include/thread.h | |
parent | 884e5778c9b66b943eb02d8437bc0b26a219e2ec (diff) | |
download | syslinux-0c44fcf078132b1f2915b7df9fcf4724f9d96b23.tar.gz |
core: thread: have start_thread() allocate memory dynamically
Have start_thread() allocate memory dynamically, using malloc().
XXX: should probably free that memory in __exit_thread()... could be
"interesting".
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/include/thread.h')
-rw-r--r-- | core/include/thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/include/thread.h b/core/include/thread.h index 917c36a6..514c30be 100644 --- a/core/include/thread.h +++ b/core/include/thread.h @@ -73,8 +73,8 @@ static inline void irq_restore(irq_state_t __st) asm volatile("pushl %0 ; popfl" : : "rm" (__st)); } -void start_thread(struct thread *t, void *stack, size_t stack_size, int prio, - void (*start_func)(void *), void *func_arg); +struct thread *start_thread(size_t stack_size, int prio, + void (*start_func)(void *), void *func_arg); void __exit_thread(void); void kill_thread(struct thread *); |