soc/intel/common: sgx: use cpu_lt_lock_memory in sgx setup
Use the new common function to set LT_LOCK_MEMORY prior to SGX activation based on Kconfig. Change-Id: Iefec0e61c7482a70af60dabc0bec3bf712d8b48a Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36354 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
c169a4751f
commit
c5fc753b13
|
@ -18,6 +18,7 @@
|
|||
#include <cpu/x86/mtrr.h>
|
||||
#include <cpu/intel/microcode.h>
|
||||
#include <cpu/intel/common/common.h>
|
||||
#include <intelblocks/cpulib.h>
|
||||
#include <intelblocks/mp_init.h>
|
||||
#include <intelblocks/msr.h>
|
||||
#include <intelblocks/sgx.h>
|
||||
|
@ -216,8 +217,9 @@ void sgx_configure(void *unused)
|
|||
if (owner_epoch_update() < 0)
|
||||
return;
|
||||
|
||||
if (CONFIG(SOC_INTEL_COMMON_BLOCK_SGX_LOCK_MEMORY))
|
||||
/* Ensure to lock memory before reload microcode patch */
|
||||
cpu_lock_sgx_memory();
|
||||
cpu_lt_lock_memory(NULL);
|
||||
|
||||
/*
|
||||
* Update just on the first CPU in the core. Other siblings
|
||||
|
|
Loading…
Reference in New Issue