mirror of
https://github.com/drasko/codezero.git
synced 2026-01-20 14:53:16 +01:00
Stack recycling is added to the thread library.
Still, it does not support thread trees which have more than one level depth.
This commit is contained in:
16
conts/libl4thread/include/l4thread/stack.h
Normal file
16
conts/libl4thread/include/l4thread/stack.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Stack region helper routines.
|
||||
*
|
||||
* Copyright (C) 2009 B Labs Ltd.
|
||||
*/
|
||||
#ifndef __LIB_STACK_H__
|
||||
#define __LIB_STACK_H__
|
||||
|
||||
int stack_pool_init(unsigned long stack_start,
|
||||
unsigned long stack_end,
|
||||
unsigned long stack_size);
|
||||
|
||||
void *stack_new_space(int nitems, int size);
|
||||
int stack_delete_space(void *stack_address, int nitems, int size);
|
||||
|
||||
#endif /* __LIB_STACK_H__ */
|
||||
Reference in New Issue
Block a user