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 3c6afef30c1a0ad6fba0fb76acc792184d924247) 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:
committed by
Isaac Christensen
parent
0ffa11bdbb
commit
34352d16a9
@ -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. */
|
||||
|
Reference in New Issue
Block a user