Possible thread stack implementation.
Architecture provides a function for thread stack base, thread code uses it.
Build and boot tested on Falco with multitasking on and off.
Change-Id: I5016fab47f9954379acf7702ac7965b0a70c88ed
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/66578
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Commit-Queue: Ronald G. Minnich <rminnich@chromium.org>
Tested-by: Ronald G. Minnich <rminnich@chromium.org>
(cherry picked from commit 3c6afef30c)
Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com>
Reviewed-on: http://review.coreboot.org/6513
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
0ffa11bdbb
commit
34352d16a9
3 changed files with 16 additions and 2 deletions
|
|
@ -38,6 +38,11 @@ struct thread {
|
|||
};
|
||||
|
||||
void threads_initialize(void);
|
||||
/* Get the base of the thread stacks.
|
||||
* Returns pointer to CONFIG_NUM_THREADS*CONFIG_STACK_SIZE contiguous bytes
|
||||
* aligned to CONFIG_STACK_SIZE, or NULL.
|
||||
*/
|
||||
void *arch_get_thread_stackbase(void);
|
||||
/* Run func(arrg) on a new thread. Return 0 on successful start of thread, < 0
|
||||
* when thread could not be started. Note that the thread will block the
|
||||
* current state in the boot state machine until it is complete. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue