diff options
author | Eric Biederman <ebiederm@xmission.com> | 2004-10-22 04:41:53 +0000 |
---|---|---|
committer | Eric Biederman <ebiederm@xmission.com> | 2004-10-22 04:41:53 +0000 |
commit | a1653cfea55c82ab12f46e14d7ecd7e7ca5e89a8 (patch) | |
tree | e16982d629c23182ff62861a66c555099b89cbbf /src/cpu/x86 | |
parent | 4f9265fdc6c6609dd801a13415bc7a5378076e78 (diff) |
- 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
Diffstat (limited to 'src/cpu/x86')
-rw-r--r-- | src/cpu/x86/mtrr/mtrr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cpu/x86/mtrr/mtrr.c b/src/cpu/x86/mtrr/mtrr.c index 8e38f23736..5ffaaf053f 100644 --- a/src/cpu/x86/mtrr/mtrr.c +++ b/src/cpu/x86/mtrr/mtrr.c @@ -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); |