diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-10-23 17:10:27 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-10-30 20:18:53 +0000 |
commit | 8a643703b87630b4346e52cac3d3acdc95ac1c70 (patch) | |
tree | e7ec84129a9c02940b8fd8bbd778601b15c0956a /src/drivers/amd/agesa | |
parent | 50f2e4ccec9df213e012c7ecddb0a9c644526c8d (diff) | |
download | coreboot-8a643703b87630b4346e52cac3d3acdc95ac1c70.tar.xz |
{cpu,drivers,nb,sb}/amd: Replace {MSR,MTRR} addresses with macros
Change-Id: I7e8de35dcdad52bb311b34bfa9b272d17ed3186b
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/29243
Reviewed-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/amd/agesa')
-rw-r--r-- | src/drivers/amd/agesa/s3_mtrr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/amd/agesa/s3_mtrr.c b/src/drivers/amd/agesa/s3_mtrr.c index 531ad4565b..4df7b05bac 100644 --- a/src/drivers/amd/agesa/s3_mtrr.c +++ b/src/drivers/amd/agesa/s3_mtrr.c @@ -61,9 +61,9 @@ void backup_mtrr(void *mtrr_store, u32 *mtrr_store_size) /* SYSCFG_MSR */ write_mtrr(&nvram_pos, SYSCFG_MSR); /* TOM */ - write_mtrr(&nvram_pos, 0xC001001A); + write_mtrr(&nvram_pos, TOP_MEM); /* TOM2 */ - write_mtrr(&nvram_pos, 0xC001001D); + write_mtrr(&nvram_pos, TOP_MEM2); *mtrr_store_size = nvram_pos - (u8*) mtrr_store; } |