diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-05-17 22:19:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-05-17 22:19:29 +0000 |
commit | 1178b8cabb03ecab6101277cc528c8726574b4a0 (patch) | |
tree | c6bb187c525afb6ad49282a2ce17d1d829f133e8 | |
parent | Moved _Entry_Table to its own file to avoid having every RTEMS directive (diff) | |
download | rtems-1178b8cabb03ecab6101277cc528c8726574b4a0.tar.bz2 |
Splitting the Thread Handler forced the inclusion of more prototypes.
-rw-r--r-- | c/src/exec/score/include/rtems/score/thread.h | 33 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/thread.h | 33 |
2 files changed, 66 insertions, 0 deletions
diff --git a/c/src/exec/score/include/rtems/score/thread.h b/c/src/exec/score/include/rtems/score/thread.h index 574d0493d2..3f66496182 100644 --- a/c/src/exec/score/include/rtems/score/thread.h +++ b/c/src/exec/score/include/rtems/score/thread.h @@ -342,6 +342,39 @@ void _Thread_Start_multitasking( void ); void _Thread_Dispatch( void ); /* + * _Thread_Stack_Allocate + * + * DESCRIPTION: + * + * Allocate the requested stack space for the thread. + * return the actual size allocated after any adjustment + * or return zero if the allocation failed. + * Set the Start.stack field to the address of the stack + * + * NOTES: NONE + * + */ + +unsigned32 _Thread_Stack_Allocate( + Thread_Control *the_thread, + unsigned32 stack_size +); + +/* + * _Thread_Stack_Free + * + * DESCRIPTION: + * + * Deallocate the Thread's stack. + * NOTES: NONE + * + */ + +void _Thread_Stack_Free( + Thread_Control *the_thread +); + +/* * _Thread_Initialize * * DESCRIPTION: diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index 574d0493d2..3f66496182 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -342,6 +342,39 @@ void _Thread_Start_multitasking( void ); void _Thread_Dispatch( void ); /* + * _Thread_Stack_Allocate + * + * DESCRIPTION: + * + * Allocate the requested stack space for the thread. + * return the actual size allocated after any adjustment + * or return zero if the allocation failed. + * Set the Start.stack field to the address of the stack + * + * NOTES: NONE + * + */ + +unsigned32 _Thread_Stack_Allocate( + Thread_Control *the_thread, + unsigned32 stack_size +); + +/* + * _Thread_Stack_Free + * + * DESCRIPTION: + * + * Deallocate the Thread's stack. + * NOTES: NONE + * + */ + +void _Thread_Stack_Free( + Thread_Control *the_thread +); + +/* * _Thread_Initialize * * DESCRIPTION: |