]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: Fix MTRR clear to detect which MTRR to use
authorDuncan Laurie <dlaurie@chromium.org>
Mon, 3 Dec 2012 13:59:00 +0000 (13:59 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Dec 2012 22:30:43 +0000 (14:30 -0800)
commit488b8b242b72fe551dc38e33af8c7f94747610bd
tree889cdc73a846b039daba627f50ce6d7b3594320b
parent300081aa68d705ce954c516751a9c03efa1fba5e
x86: Fix MTRR clear to detect which MTRR to use

Coreboot was always using MTRR 7 for the write-protect
cache entry that covers the ROM and U-boot was removing it.
However with 4GB configs we need more MTRRs for the BIOS
and so the WP MTRR needs to move.  Instead coreboot will
always use the last available MTRR that is normally set
aside for OS use and U-boot can clear it before the OS.

Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/coreboot/coreboot.c