mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
Now, we support thread trees which are spanning more than one level depth. Any thread can create any number of threads provided that they are under the limits which are enforced by the kernel. Also with this commit, we have almost finished supporting SHARED space thread creation in which stack and utcb space are allocated statically.
20 lines
453 B
C
20 lines
453 B
C
/*
|
|
* Stack region helper routines.
|
|
*
|
|
* Copyright (C) 2009 B Labs Ltd.
|
|
*/
|
|
#ifndef __LIB_STACK_H__
|
|
#define __LIB_STACK_H__
|
|
|
|
/* Symbolic constants and macros */
|
|
#define IS_STACK_SETUP() (lib_stack_size)
|
|
|
|
int stack_pool_init(unsigned long stack_start,
|
|
unsigned long stack_end,
|
|
unsigned long stack_size);
|
|
|
|
void *get_stack_space(int nitems, int size);
|
|
int delete_stack_space(void *stack_address, int nitems, int size);
|
|
|
|
#endif /* __LIB_STACK_H__ */
|