diff options
author | Sven Schnelle <svens@stackframe.org> | 2012-01-10 12:01:43 +0100 |
---|---|---|
committer | Sven Schnelle <svens@stackframe.org> | 2012-01-10 21:51:40 +0100 |
commit | adfbcb79ab719af4435e3fdbb8321cda825e076c (patch) | |
tree | b1a6b834c0c7b50c69a01bd4b969fadc132df472 /src/include | |
parent | 75fb40e15dbffe4148ab108e11d10fe3a9ed6cbe (diff) | |
download | coreboot-adfbcb79ab719af4435e3fdbb8321cda825e076c.tar.xz |
MTRR: get physical address size from CPUID
The current code uses static values for the physical address size
supported by a CPU. This isn't always the right value: I.e. on
model_6[ef]x Core (2) Duo CPUs physical address size is 36, while
Xeons from the same family have 38 bits, which results in invalid
MTRR setup. Fix this by getting the right number from CPUID.
Change-Id: If019c3d9147c3b86357f0ef0d9fda94d49d811ca
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/529
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/cpu/x86/mtrr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/cpu/x86/mtrr.h b/src/include/cpu/x86/mtrr.h index c3b3e222f9..62cb8b7a3f 100644 --- a/src/include/cpu/x86/mtrr.h +++ b/src/include/cpu/x86/mtrr.h @@ -39,7 +39,7 @@ #include <device/device.h> void enable_fixed_mtrr(void); void x86_setup_var_mtrrs(unsigned int address_bits, unsigned int above4gb); -void x86_setup_mtrrs(unsigned address_bits); +void x86_setup_mtrrs(void); int x86_mtrr_check(void); void set_var_mtrr_resource(void *gp, struct device *dev, struct resource *res); void x86_setup_fixed_mtrrs(void); |