cpu/amd/agesa/family15tn: Add udelay implementation for SMM
commit065b7da298953feaec3563bf753f45cf00fba2c0
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Tue, 15 Apr 2014 20:41:38 +0000 (15 15:41 -0500)
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>
Wed, 16 Apr 2014 21:42:19 +0000 (16 23:42 +0200)
tree0e10d32eff24f13ca8112a8bf50b4ddc938f766c
parent53072d869ad9234781b5a479dfcc9a9288723da6
cpu/amd/agesa/family15tn: Add udelay implementation for SMM

This is a small implementation which uses only MSRs and rdtsc, without
relying on northbridge or other system hardware. It's SMM safe in that
it only reads registers, and doesn't modify the state of the hardware.

Change-Id: Ifa02ca73455b382f830c9b30b80b4f1bb18706b4
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/5501
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
src/cpu/amd/agesa/family15tn/Makefile.inc
src/cpu/amd/agesa/family15tn/udelay.c [new file with mode: 0644]