soc/intel: sgx: get rid of UEFI-style usage of global variable
commit6e66d7b8ebfd179f3fedd4ead05fe166d4e8e1fe
authorMichael Niewöhner <foss@mniewoehner.de>
Tue, 8 Oct 2019 10:00:24 +0000 (8 12:00 +0200)
committerNico Huber <nico.h@gmx.de>
Thu, 10 Oct 2019 14:06:09 +0000 (10 14:06 +0000)
treef13d44396542f8edca7aa1fddd3118882faccd71
parentedfe125bf9441fdfcfe37855ddcdc594d5e652aa
soc/intel: sgx: get rid of UEFI-style usage of global variable

Rework SGX enable status in a clean way without using a global variable.

Change-Id: Ida6458eb46708df8fd238122aed41b57ca48c15b
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35882
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
src/soc/intel/apollolake/cpu.c
src/soc/intel/common/block/include/intelblocks/sgx.h
src/soc/intel/common/block/sgx/sgx.c
src/soc/intel/skylake/acpi.c
src/soc/intel/skylake/cpu.c