completely deprecate sgx.heap_min

This commit is contained in:
Chia-Che Tsai
2017-10-03 09:59:42 -04:00
parent 339f07f54e
commit 3a40af399d
+2 -6
View File
@@ -278,10 +278,6 @@ int initialize_enclave (struct pal_enclave * enclave)
goto err;
}
/* Reading sgx.heap_min from manifest */
if (get_config(enclave->config, "sgx.heap_min", cfgbuf, CONFIG_MAX) > 0)
heap_min = parse_int(cfgbuf);
/* Reading sgx.thread_num from manifest */
if (get_config(enclave->config, "sgx.thread_num", cfgbuf, CONFIG_MAX) > 0)
enclave->thread_num = parse_int(cfgbuf);
@@ -295,9 +291,9 @@ int initialize_enclave (struct pal_enclave * enclave)
/* Reading sgx.static_address from manifest */
if (get_config(enclave->config, "sgx.static_address", cfgbuf, CONFIG_MAX) > 0 &&
cfgbuf[0] == '1')
enclave->baseaddr = DEAFULT_HEAP_MIN;
enclave->baseaddr = heap_min;
else
enclave->baseaddr = 0;
enclave->baseaddr = heap_min = 0;
TRY(read_enclave_token, enclave->token, &enclave_token);
TRY(read_enclave_sigstruct, enclave->sigfile, &enclave_sigstruct);