coreboot-kgpe-d16/src
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/x86 Pass the CPU index as a parameter to startup. 2012-11-13 16:07:45 +01:00
boot Store timestamps before resuming from suspend 2012-11-12 17:10:52 +01:00
console Log unexpected post code from the previous boot 2012-11-08 19:40:58 +01:00
cpu Pass the CPU index as a parameter to startup. 2012-11-13 16:07:45 +01:00
devices oprom: Ensure that mode information is valid before putting it in the tables. 2012-11-12 04:22:34 +01:00
drivers If cmos is invalid, always set the rtc date and time 2012-11-12 17:12:14 +01:00
ec Auto-declare chip_operations 2012-08-22 05:06:41 +02:00
include Pass the CPU index as a parameter to startup. 2012-11-13 16:07:45 +01:00
lib USBDEBUG: retry harder for slow devices 2012-07-30 20:54:24 +02:00
mainboard SandyBridge/IvyBridge: Add IFD and ME firmware automatically 2012-11-13 00:24:26 +01:00
northbridge Initial IGD OpRegion implementation 2012-11-12 18:36:30 +01:00
southbridge SandyBridge/IvyBridge: Add IFD and ME firmware automatically 2012-11-13 00:24:26 +01:00
superio smsc/lpc47n227: Make early_serial usable 2012-11-06 21:53:48 +01:00
vendorcode vboot: Add option to skip TPM resume on S3 resume 2012-11-12 19:13:34 +01:00
Kconfig SandyBridge/IvyBridge: Add IFD and ME firmware automatically 2012-11-13 00:24:26 +01:00
Kconfig.deprecated_options Unify ID_SECTION_OFFSET and mark it deprecated 2012-01-18 11:21:39 +01:00