coreboot-kgpe-d16/src/include
Ronald G. Minnich 8b93059ecc Pass the CPU index as a parameter to startup.
This addition is in support of future multicore support in
coreboot. It also will allow us to remove some asssembly code.

The CPU "index" -- i.e., its order in the sequence in which
cores are brought up, NOT its APIC id -- is passed into the
secondary start. We modify the function to specify regparm(0).
We also take this opportunity to do some cleanup:
indexes become unsigned ints, not unsigned longs, for example.

Build and boot on a multicore system, with pcserial enabled.

Capture the output. Observe that the messages
Initializing CPU #0
Initializing CPU #1
Initializing CPU #2
Initializing CPU #3
appear exactly as they do prior to this change.

Change-Id: I5854d8d957c414f75fdd63fb017d2249330f955d
Signed-off-by: Ronald G. Minnich <rminnich@chromium.org>
Reviewed-on: http://review.coreboot.org/1820
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
2012-11-13 16:07:45 +01:00
..
arch-generic
boot Do not allow modifying memory table directly 2012-08-08 11:42:17 +02:00
console Define post codes for OS boot and resume 2012-11-12 04:21:59 +01:00
cpu Pass the CPU index as a parameter to startup. 2012-11-13 16:07:45 +01:00
device Drop redundant CHIP_NAME in mainboard.c 2012-11-06 21:59:21 +01:00
pc80 mc146818rtc: Remove the hyphen to build on NetBSD and Darwin 2012-11-09 15:26:22 +01:00
smp Clean up #ifs 2012-05-08 00:34:34 +02:00
assert.h We call this cache as ram everywhere, so let's call it the same in Kconfig 2010-08-30 17:53:13 +00:00
cbfs.h Implement stack overflow checking for the BSP 2012-07-24 23:29:12 +02:00
cbfs_core.h Since cbfs_core.h provides a macro that uses ntohl, make sure ntohl is available 2012-03-14 23:00:25 +01:00
cbmem.h ELOG: Support for non-memory mapped flash 2012-11-12 17:09:39 +01:00
delay.h Clean up #ifs 2012-05-08 00:34:34 +02:00
ehci.h Fix usb debug dongle support 2011-10-31 04:06:10 +01:00
elog.h ELOG: Add EC events to elog header 2012-11-09 19:03:24 +01:00
fallback.h In 2007 Adrian Reber suggested that we drop ASSEMBLY in favor of __ASSEMBLER__. 2011-04-10 04:15:23 +00:00
ip_checksum.h Add support for the console over Ethernet (through PCI NE2000). 2010-07-16 20:02:09 +00:00
kconfig.h Add config_enabled() from Linux 2012-05-08 00:36:09 +02:00
lib.h Implement stack overflow checking for the BSP 2012-07-24 23:29:12 +02:00
reset.h Clean up #ifs 2012-05-08 00:34:34 +02:00
sdram_mode.h Various license header consistency fixes (trivial). 2010-02-15 23:10:19 +00:00
smbios.h Extend smbios api to allow runtime change of mainboard serial and version 2012-07-25 14:13:04 +02:00
spd.h Some more DIMM0 related cleanups and deduplication. 2010-11-20 20:23:08 +00:00
spd_ddr2.h Add VIA CX700 support, plus VIA vt8454c reference board support. 2009-04-17 08:37:18 +00:00
spi.h SPI: Fix and enable Fast Read support 2012-11-12 17:09:21 +01:00
spi_flash.h SPI flash layer: remove unused function spi_flash_free() 2012-07-24 02:37:39 +02:00
stdlib.h Remove unused free() function 2012-07-24 08:38:21 +02:00
string.h Add an implementation for the memchr library function 2012-03-09 20:00:53 +01:00
swab.h Add macros for 64bit byte order swapping 2011-10-21 14:13:19 +02:00
timestamp.h Prevent inclusion of tsc.h when not needed 2012-11-09 19:04:37 +01:00
trace.h Fix tracing compilation on SMM enabled targets. 2012-09-13 10:11:44 +02:00
types.h Some changes required to get yabel working on v2 (and they generally make 2009-03-01 10:16:01 +00:00
uart8250.h Add uartmem_init prototype. 2012-07-24 12:17:21 +02:00
usb_ch9.h USB Debug Port related license header fixes (trivial). 2010-09-23 18:16:46 +00:00
usbdebug.h USBDEBUG: buffer up to 8 bytes 2012-07-26 15:52:00 +02:00
version.h
watchdog.h Clean up #ifs 2012-05-08 00:34:34 +02:00