summaryrefslogtreecommitdiff
path: root/util/inteltool
diff options
context:
space:
mode:
authorSiyuan Wang <wangsiyuanbuaa@gmail.com>2013-06-07 14:31:19 +0800
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-06-13 01:17:22 +0200
commit6c4f3ce4906c32e365825a7d8630945f79b60616 (patch)
tree5c8eb8056e05a64a37ebd06a5ad3f53d5c314d1c /util/inteltool
parentd2ae6ae7898b00425ace91ebb835299c18a5ad50 (diff)
downloadcoreboot-6c4f3ce4906c32e365825a7d8630945f79b60616.tar.xz
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>
Diffstat (limited to 'util/inteltool')
0 files changed, 0 insertions, 0 deletions