The SGX selftest fails to build on tip/x86/sgx:
main.c: In function ‘get_total_epc_mem’:
main.c:296:17: error: implicit declaration of function ‘__cpuid’ [-Werror=implicit-function-declaration]
296 | __cpuid(&eax, &ebx, &ecx, &edx);
| ^~~~~~~
Include cpuid.h and use __cpuid_count() macro in order to fix the
compilation issue.
[ dhansen: tweak commit message ]
Fixes:
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| call.S | ||
| defines.h | ||
| load.c | ||
| main.c | ||
| main.h | ||
| sign_key.S | ||
| sign_key.pem | ||
| sigstruct.c | ||
| test_encl.c | ||
| test_encl.lds | ||
| test_encl_bootstrap.S | ||