- Better memory I/O space distinguishing in amd_mtrr.c

This is way to much code duplication but for now things work.
- Fix the typo in amd8111_lpc.c
- Remove an unused macro, use continue instead of break in mtrr.c


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1704 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Eric Biederman
2004-10-22 04:41:53 +00:00
parent 4f9265fdc6
commit a1653cfea5
3 changed files with 91 additions and 8 deletions

View File

@ -29,8 +29,6 @@
#include <cpu/x86/mtrr.h>
#include <cpu/x86/cache.h>
#define arraysize(x) (sizeof(x)/sizeof((x)[0]))
#warning "FIXME I do not properly handle address more than 36 physical address bits"
#ifdef k8
# define ADDRESS_BITS 40
@ -284,7 +282,7 @@ void x86_setup_mtrrs(void)
start_mtrr = fixed_mtrr_index(resk(res->base));
last_mtrr = fixed_mtrr_index(resk((res->base + res->size)));
if (start_mtrr >= NUM_FIXED_RANGES) {
break;
continue;
}
printk_debug("Setting fixed MTRRs(%d-%d) Type: WB\n",
start_mtrr, last_mtrr);