SMP: Add arch-agnostic boot_cpu()
We should not have x86 specific includes in lib/. Change-Id: I18fa9c8017d65c166ffd465038d71f35b30d6f3d Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5156 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks <dhendrix@chromium.org> Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
@@ -25,19 +25,10 @@
|
||||
#include <arch/stages.h>
|
||||
#include <cbfs.h>
|
||||
#include <console/console.h>
|
||||
#include <smp/node.h>
|
||||
|
||||
#include "stages.c"
|
||||
|
||||
static int boot_cpu(void)
|
||||
{
|
||||
/*
|
||||
* FIXME: This is a stub for now. All non-boot CPUs should be
|
||||
* waiting for an interrupt. We could move the chunk of assembly
|
||||
* which puts them to sleep in here...
|
||||
*/
|
||||
return 1;
|
||||
}
|
||||
|
||||
void main(void)
|
||||
{
|
||||
const char *stage_name = "fallback/romstage";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <smp/node.h>
|
||||
#include <bootblock_common.h>
|
||||
#include <pc80/mc146818rtc.h>
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <smp/node.h>
|
||||
#include <bootblock_common.h>
|
||||
|
||||
static void main(unsigned long bist)
|
||||
|
||||
@@ -17,8 +17,10 @@
|
||||
* MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <smp/node.h>
|
||||
#include <console/console.h>
|
||||
#include <console/vtxprintf.h>
|
||||
|
||||
#if CONFIG_CONSOLE_SERIAL8250 || CONFIG_CONSOLE_SERIAL8250MEM
|
||||
#include <uart8250.h>
|
||||
#endif
|
||||
@@ -31,9 +33,6 @@
|
||||
#if CONFIG_SPKMODEM
|
||||
#include <console/spkmodem.h>
|
||||
#endif
|
||||
#if CONFIG_SQUELCH_EARLY_SMP
|
||||
#include <cpu/x86/lapic.h>
|
||||
#endif
|
||||
|
||||
void console_tx_byte(unsigned char byte)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user