Use MTRR defines
Change-Id: I60ae6dcb8c3b280fe74f27f4d61de70cc1ba190b Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/6123 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
		@@ -778,17 +778,16 @@ int x86_mtrr_check(void)
 | 
				
			|||||||
	msr_t msr;
 | 
						msr_t msr;
 | 
				
			||||||
	printk(BIOS_DEBUG, "\nMTRR check\n");
 | 
						printk(BIOS_DEBUG, "\nMTRR check\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	msr = rdmsr(0x2ff);
 | 
						msr = rdmsr(MTRRdefType_MSR);
 | 
				
			||||||
	msr.lo >>= 10;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	printk(BIOS_DEBUG, "Fixed MTRRs   : ");
 | 
						printk(BIOS_DEBUG, "Fixed MTRRs   : ");
 | 
				
			||||||
	if (msr.lo & 0x01)
 | 
						if (msr.lo & MTRRdefTypeFixEn)
 | 
				
			||||||
		printk(BIOS_DEBUG, "Enabled\n");
 | 
							printk(BIOS_DEBUG, "Enabled\n");
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		printk(BIOS_DEBUG, "Disabled\n");
 | 
							printk(BIOS_DEBUG, "Disabled\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	printk(BIOS_DEBUG, "Variable MTRRs: ");
 | 
						printk(BIOS_DEBUG, "Variable MTRRs: ");
 | 
				
			||||||
	if (msr.lo & 0x02)
 | 
						if (msr.lo & MTRRdefTypeEn)
 | 
				
			||||||
		printk(BIOS_DEBUG, "Enabled\n");
 | 
							printk(BIOS_DEBUG, "Enabled\n");
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		printk(BIOS_DEBUG, "Disabled\n");
 | 
							printk(BIOS_DEBUG, "Disabled\n");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user