coreboot/src
Angel Pons 2f1739ada8 security/intel/txt: Fix variable MTRR handling
The MSR macros were treated as memory addresses and the loops had
off-by-one errors. This resulted in a CPU exception before GETSEC, and
another exception after GETSEC (once the first exception was fixed).

Tested on Asrock B85M Pro4, ACM complains about the missing TPM and
resets the platform. When the `getsec` instruction is commented-out, the
board is able to boot normally, without any exceptions nor corruption.

Change-Id: Ib5d23cf9885401f3ec69b0f14cea7bad77eee19a
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44183
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
2020-08-07 11:56:29 +00:00
..
acpi src/acpi: Add missing <{stdbool,stdint}.h> 2020-07-29 09:37:10 +00:00
arch arch/x86/pirq_routing.c: Drop unneeded continue 2020-08-06 11:22:11 +00:00
commonlib src: Remove unused 'include <stdint.h> 2020-07-14 16:11:10 +00:00
console console: Update for vboot before bootblock 2020-06-15 22:07:12 +00:00
cpu cpu/intel/common: Add intel_ht_supported function 2020-08-06 22:33:02 +00:00
device src: Use space after 'if', 'for' 2020-08-05 11:37:00 +00:00
drivers drivers/intel/fsp2_0: Do AP re-init after FSP-S if USE_INTEL_FSP_MP_INIT enable 2020-08-06 04:24:24 +00:00
ec ec/lenovo/h8: Align macro values in one column 2020-07-26 21:40:00 +00:00
include drivers/genesyslogic/gl9763e: Add driver for Genesys Logic GL9763E 2020-08-05 15:16:16 +00:00
lib gpio: Pull down HiZ pins after reading tristate GPIO strapping 2020-08-06 23:54:41 +00:00
mainboard mb/elmex/pcm205401: Add comment about the code 2020-08-07 10:14:39 +00:00
northbridge nb/intel/sandybridge: Drop inexistent device from DMAR 2020-08-06 11:16:46 +00:00
security security/intel/txt: Fix variable MTRR handling 2020-08-07 11:56:29 +00:00
soc soc/intel/common: Log CSE FW Status Registers before triggering recovery 2020-08-07 08:30:35 +00:00
southbridge sb/intel/lynxpoint: Use PCI bitwise ops 2020-08-07 11:02:43 +00:00
superio superio/common: Avoid NULL pointer dereference 2020-07-24 21:21:09 +00:00
vendorcode vendorcode/amd/fsp/picasso Fix type 17 smbios misalignment 2020-08-05 20:10:53 +00:00
Kconfig arch/x86: Remove RELOCATABLE_RAMSTAGE 2020-07-06 06:17:47 +00:00