Add and use rtems_bsd_get_task_stack_size()

This commit is contained in:
Sebastian Huber
2015-01-20 08:57:36 +01:00
parent 91ea7ea614
commit 33a15c304b
10 changed files with 72 additions and 7 deletions

View File

@@ -50,9 +50,6 @@
#define BSD_TASK_NAME rtems_build_name('_', 'B', 'S', 'D')
/* FIXME */
#define BSD_MINIMUM_TASK_STACK_SIZE ((size_t) 32 * 1024)
struct sleepqueue {
Thread_queue_Control sq_blocked;
LIST_ENTRY(sleepqueue) sq_hash;

View File

@@ -90,6 +90,19 @@ rtems_status_code rtems_bsd_initialize(void);
*/
rtems_task_priority rtems_bsd_get_task_priority(const char *name);
/**
* @brief Returns the stack size for a task specified by its name.
*
* Applications may provide their own implementation of this function. For
* example they can define their implementation in the same module which calls
* rtems_bsd_initialize().
*
* @param[in] name The task name.
*
* @return The desired task stack size.
*/
size_t rtems_bsd_get_task_stack_size(const char *name);
#ifdef __cplusplus
}
#endif /* __cplusplus */