Change error code handling of calls to psa_call

pull/9780/head
itayzafrir 2019-02-27 11:59:20 +02:00
parent 2918f74883
commit 31d202b3f6
2 changed files with 7 additions and 4 deletions

View File

@ -34,10 +34,6 @@ static psa_status_t invoke_ipc_call(uint32_t sid, psa_invec *in_vec, size_t in_v
status = psa_call(handle, in_vec, in_vec_size, out_vec, out_vec_size);
psa_close(handle);
if (status < 0) {
status = PSA_ERROR_COMMUNICATION_FAILURE;
}
return (status);
}

View File

@ -23,6 +23,13 @@
typedef psa_status_t (*SignalHandler)(psa_msg_t *);
#if defined(TARGET_TFM)
#define SPM_PANIC(format, ...) \
{ \
while(1){}; \
}
#endif
static void read_input_param_from_message(psa_msg_t *msg, uint8_t param_index, void *param_ptr)
{
size_t bytes_read = psa_read(msg->handle, param_index, param_ptr, msg->in_size[param_index]);