BACKPORT: x86: add thread support
authorAaron Durbin <adurbin@chromium.org>
Mon, 6 May 2013 17:22:23 +0000 (12:22 -0500)
committerChromeBot <chrome-bot@google.com>
Wed, 15 May 2013 18:19:50 +0000 (11:19 -0700)
commit3b1b0eb49e4cd861d76687db9fdcccf4d743bf23
tree73e7bbf244a143116e3eacd300e48700d682428c
parentc45183496309fbff47f2c41f7faef0dbc3832bbd
BACKPORT: x86: add thread support

Thread support is added for the x86 architecture. Both
the local apic and the tsc udelay() functions have a
call to thread_yield_microseconds() so as to provide an
opportunity to run pending threads.

BUG=None
BRANCH=None
TEST=Built

Change-Id: I9d65a8e67ffdee5fd813f7554ecafbdf37b93af0
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/51163
Reviewed-by: Ronald G. Minnich <rminnich@chromium.org>
src/Kconfig
src/arch/x86/lib/Makefile.inc
src/arch/x86/lib/c_start.S
src/arch/x86/lib/thread.c [new file with mode: 0644]
src/arch/x86/lib/thread_switch.S [new file with mode: 0644]
src/cpu/intel/haswell/mp_init.c
src/cpu/x86/lapic/apic_timer.c
src/cpu/x86/lapic/lapic_cpu_init.c
src/cpu/x86/tsc/delay_tsc.c