diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-10-15 23:48:25 +0200 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-10-22 19:59:53 +0000 |
commit | 5a6daa6b7288eed6561d90fdb7afebbc01ade869 (patch) | |
tree | c13f87d2dde0fc1ae0dba230231694adfe375d75 /src/security/intel/txt/ramstage.c | |
parent | 92eab64a43098849dd0784c11620e3dbe9d8eb35 (diff) |
sec/intel/txt: Move DPR size to Kconfig
Instead of hardcoding the size in code, expose it as a Kconfig symbol.
This allows platform code to program the size in the MCH DPR register.
Change-Id: I9b9bcfc7ceefea6882f8133a6c3755da2e64a80c
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46491
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/security/intel/txt/ramstage.c')
-rw-r--r-- | src/security/intel/txt/ramstage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/security/intel/txt/ramstage.c b/src/security/intel/txt/ramstage.c index f532a2fbd8..8d9f5d9b3c 100644 --- a/src/security/intel/txt/ramstage.c +++ b/src/security/intel/txt/ramstage.c @@ -254,7 +254,7 @@ static void lockdown_intel_txt(void *unused) return; } - if (dpr.size < 3) { + if (dpr.size < CONFIG_INTEL_TXT_DPR_SIZE) { printk(BIOS_ERR, "TEE-TXT: MCH DPR configured size is too small.\n"); return; } |