{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>
This commit is contained in:
committed by
Martin Roth
parent
50f2e4ccec
commit
8a643703b8
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user