Pratikkumar V Prajapati has uploaded this change for review. ( https://review.coreboot.org/21275
Change subject: soc/intel/common/sgx: provide weak implementation of cpu_lock_sgx_memory() ......................................................................
soc/intel/common/sgx: provide weak implementation of cpu_lock_sgx_memory()
SOC/CPU specific provides the actual implementation if its needed. Not all SOC/CPU needs to perform this init sequence.
Change-Id: I9212e99488905d245983accc8a49a94061b22119 Signed-off-by: Pratik Prajapati pratikkumar.v.prajapati@intel.com --- M src/soc/intel/common/block/sgx/sgx.c 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/75/21275/1
diff --git a/src/soc/intel/common/block/sgx/sgx.c b/src/soc/intel/common/block/sgx/sgx.c index a199a83..7480d4b 100644 --- a/src/soc/intel/common/block/sgx/sgx.c +++ b/src/soc/intel/common/block/sgx/sgx.c @@ -167,6 +167,12 @@ return 0; }
+/* SOC/CPU specific provides the actual implementation if its needed */ +__attribute__((weak)) void cpu_lock_sgx_memory(void) +{ + /* Do nothing*/ +} + void sgx_configure(void) { device_t dev = SA_DEV_ROOT;