Browse Source

Merge "fix(rss): fix build issues with comms protocol" into integration

pull/1988/merge
Sandrine Bailleux 2 years ago
committed by TrustedFirmware Code Review
parent
commit
2ddb5415ca
  1. 8
      drivers/arm/rss/rss_comms.c
  2. 1
      drivers/arm/rss/rss_comms_protocol.c
  3. 2
      drivers/arm/rss/rss_comms_protocol_embed.c
  4. 1
      drivers/arm/rss/rss_comms_protocol_pointer_access.c

8
drivers/arm/rss/rss_comms.c

@ -70,6 +70,10 @@ static uint8_t select_protocol_version(const psa_invec *in_vec, size_t in_len,
psa_status_t psa_call(psa_handle_t handle, int32_t type, const psa_invec *in_vec, size_t in_len,
psa_outvec *out_vec, size_t out_len)
{
/* Declared statically to avoid using huge amounts of stack space. Maybe revisit if
* functions not being reentrant becomes a problem.
*/
static union rss_comms_io_buffer_t io_buf;
enum mhu_error_t err;
psa_status_t status;
static uint8_t seq_num = 1U;
@ -77,10 +81,6 @@ psa_status_t psa_call(psa_handle_t handle, int32_t type, const psa_invec *in_vec
size_t reply_size = sizeof(io_buf.reply);
psa_status_t return_val;
size_t idx;
/* Declared statically to avoid using huge amounts of stack space. Maybe revisit if
* functions not being reentrant becomes a problem.
*/
static union rss_comms_io_buffer_t io_buf;
if (type > INT16_MAX || type < INT16_MIN || in_len > PSA_MAX_IOVEC
|| out_len > PSA_MAX_IOVEC) {

1
drivers/arm/rss/rss_comms_protocol.c

@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <assert.h>
#include <common/debug.h>
#include "rss_comms_protocol.h"

2
drivers/arm/rss/rss_comms_protocol_embed.c

@ -5,7 +5,7 @@
*
*/
#include <assert.h>
#include <string.h>
#include <common/debug.h>

1
drivers/arm/rss/rss_comms_protocol_pointer_access.c

@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <assert.h>
#include "rss_comms_protocol_pointer_access.h"

Loading…
Cancel
Save