From 34352d16a96b8096094274dddae98e37939857b9 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Wed, 21 Aug 2013 16:03:32 -0700 Subject: 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 Reviewed-on: https://gerrit.chromium.org/gerrit/66578 Reviewed-by: Aaron Durbin Commit-Queue: Ronald G. Minnich Tested-by: Ronald G. Minnich (cherry picked from commit 3c6afef30c1a0ad6fba0fb76acc792184d924247) Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/6513 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan --- src/arch/x86/lib/thread.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/arch/x86/lib') diff --git a/src/arch/x86/lib/thread.c b/src/arch/x86/lib/thread.c index 06f8a154e2..b1549b5e32 100644 --- a/src/arch/x86/lib/thread.c +++ b/src/arch/x86/lib/thread.c @@ -56,3 +56,10 @@ void arch_prepare_thread(struct thread *t, t->stack_current = stack; } + +void *arch_get_thread_stackbase(void) +{ + /* defined in c_start.S */ + extern u8 thread_stacks[]; + return &thread_stacks[0]; +} -- cgit v1.2.3