MTRR: get physical address size from CPUID
authorSven Schnelle <svens@stackframe.org>
Tue, 10 Jan 2012 11:01:43 +0000 (12:01 +0100)
committerSven Schnelle <svens@stackframe.org>
Tue, 10 Jan 2012 20:51:40 +0000 (21:51 +0100)
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>

No differences found