Only BSP CPU writes CMOS in bootblock code
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Mon, 5 Dec 2011 18:17:17 +0000 (20:17 +0200)
committerPatrick Georgi <patrick@georgi-clan.de>
Sat, 24 Dec 2011 11:10:14 +0000 (12:10 +0100)
commitf28dbe0c5d299297029afe01bb7329c6c18ae3db
tree32b267efa3142b0c330b18280ef36221beb5df9a
parentf42fdabe651ab327a5c76d672781d60bd9124e94
Only BSP CPU writes CMOS in bootblock code

CMOS accesses are not safe for multi-processor and only the BSP CPU
should count reboots and test CMOS sanity.

A questionable single byte CMOS read access from AP CPUs remains.
AP CPUs should always select the same romstage prefix as BSP CPU.

Change-Id: I29118e33c07c0080c94abb90f703e38312c72432
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/446
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
src/arch/x86/init/bootblock_normal.c
src/arch/x86/init/bootblock_simple.c