coreboot/src
Siyuan Wang 6c4f3ce490 AMD S3 resume: use a function to replace duplicated code
In function OemAgesaSaveMtrr of 'src/cpu/amd/agesa/s3_resume.c',
there are many code like this:
  msr_data = rdmsr(0x258);
  flash->write(flash, nvram_pos, 4, &msr_data.lo);
  nvram_pos += 4;
  flash->write(flash, nvram_pos, 4, &msr_data.hi);
  nvram_pos += 4;
Add a function write_mtrr to do this.

Change-Id: Id6464e637db1758b07ac2d79d3be1375a8d49651
Signed-off-by: Siyuan Wang <SiYuan.Wang@amd.com>
Signed-off-by: Siyuan Wang <wangsiyuanbuaa@gmail.com>
Reviewed-on: http://review.coreboot.org/3410
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2013-06-13 01:17:22 +02:00
..
arch ARM: Put the ROM stage into the image before other bits. 2013-06-10 17:52:15 +02:00
console usbdebug: Fix use without EARLY_CONSOLE 2013-06-07 09:50:12 +02:00
cpu AMD S3 resume: use a function to replace duplicated code 2013-06-13 01:17:22 +02:00
device Yabel : Add tracing option needed by i915tool. 2013-06-04 22:57:26 +02:00
drivers pc80/tpm: allow for cache-as-ram migration 2013-05-16 01:29:59 +02:00
ec Avoid tripping overheat alarm on X201 before ME boots 2013-06-12 05:29:51 +02:00
include ramtest.c: Add silent ram_check 2013-06-10 22:30:39 +02:00
lib usbdebug: Improve solving EHCI debug port problems 2013-06-12 05:20:04 +02:00
mainboard AMD Thatcher: fix issue 'S3 fails to suspend after wake up from USB keyboard' 2013-06-13 01:15:35 +02:00
northbridge AMD: Kconfig cleanup 2013-06-13 01:08:12 +02:00
southbridge AMD: Kconfig cleanup 2013-06-13 01:08:12 +02:00
superio winbond/w83627dhg: Add ACPI support 2013-06-11 00:14:00 +02:00
vendorcode fam15 vendorcode: Change license to BSD from AMD software license 2013-06-09 17:37:16 +02:00
Kconfig Yabel : Add tracing option needed by i915tool. 2013-06-04 22:57:26 +02:00