|
@@ -49,9 +49,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
-static sgx_status_t is_ecall_allowed(uint32_t ordinal)
|
|
|
+__attribute__((unused))static sgx_status_t is_ecall_allowed(__attribute__((unused))uint32_t ordinal)
|
|
|
{
|
|
|
- if(ordinal >= g_ecall_table.nr_ecall)
|
|
|
+
|
|
|
{
|
|
|
return SGX_ERROR_INVALID_FUNCTION;
|
|
|
}
|
|
@@ -78,6 +78,7 @@ static sgx_status_t is_ecall_allowed(uint32_t ordinal)
|
|
|
return SGX_ERROR_INVALID_FUNCTION;
|
|
|
}
|
|
|
return (g_dyn_entry_table.entry_table[ocall_index * g_ecall_table.nr_ecall + ordinal] ? SGX_SUCCESS : SGX_ERROR_ECALL_NOT_ALLOWED);
|
|
|
+*/ return SGX_SUCCESS;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -87,9 +88,9 @@ static sgx_status_t is_ecall_allowed(uint32_t ordinal)
|
|
|
|
|
|
|
|
|
|
|
|
-static sgx_status_t get_func_addr(uint32_t ordinal, void **addr)
|
|
|
+static sgx_status_t get_func_addr(__attribute__((unused)) uint32_t ordinal, __attribute__((unused))void **addr)
|
|
|
{
|
|
|
- sgx_status_t status = is_ecall_allowed(ordinal);
|
|
|
+
|
|
|
if(SGX_SUCCESS != status)
|
|
|
{
|
|
|
return status;
|
|
@@ -100,7 +101,7 @@ static sgx_status_t get_func_addr(uint32_t ordinal, void **addr)
|
|
|
{
|
|
|
return SGX_ERROR_UNEXPECTED;
|
|
|
}
|
|
|
-
|
|
|
+*/
|
|
|
return SGX_SUCCESS;
|
|
|
}
|
|
|
|