mirror of
https://github.com/clearlinux/graphene.git
synced 2026-08-07 04:25:54 +00:00
completely deprecate sgx.heap_min
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user