Small SMM fixups
authorRudolf Marek <r.marek@assembler.cz>
Sat, 2 Jul 2011 14:03:24 +0000 (16:03 +0200)
committerPatrick Georgi <patrick@georgi-clan.de>
Mon, 4 Jul 2011 06:36:42 +0000 (08:36 +0200)
commit7f76290e2d085da8975a8a011f93e50a5460645b
treee89db510169944028f45ede5b9e8e57f1ac2ff7e
parentc0458e63d080223c7ee31367b8259f41a8f03405
Small SMM fixups

Align the spinlock to the 4 byte boundary (CPU will guarantee atomicity of XCHG).
While at it add the PAUSE instruction to spinlock loop to hint the CPU we are just
spinlocking. The rep nop could not be used because "as" complains that rep is used
without string instructions.

Change-Id: I325cd83de3a6557b1bee6758bc151bc81e874f8c
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Reviewed-on: http://review.coreboot.org/81
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
src/cpu/x86/smm/smihandler.c