mirror of https://github.com/ARMmbed/mbed-os.git
Change error code handling of calls to psa_call
parent
2918f74883
commit
31d202b3f6
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue