mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
fix(rss): rename AP-RSS message size macro
Adding PLAT_* prefix to indicate that the platform needs to provide this definition. Signed-off-by: Tamas Ban <tamas.ban@arm.com> Change-Id: I0bd02be405fd8b1e625bd2b82647ebb2b58265fc
This commit is contained in:
parent
445130b127
commit
70247ddbbd
3 changed files with 6 additions and 6 deletions
|
@ -42,11 +42,11 @@ static uint8_t select_protocol_version(const psa_invec *in_vec, size_t in_len,
|
|||
|
||||
comms_embed_msg_min_size = sizeof(struct serialized_rss_comms_header_t) +
|
||||
sizeof(struct rss_embed_msg_t) -
|
||||
RSS_COMMS_PAYLOAD_MAX_SIZE;
|
||||
PLAT_RSS_COMMS_PAYLOAD_MAX_SIZE;
|
||||
|
||||
comms_embed_reply_min_size = sizeof(struct serialized_rss_comms_header_t) +
|
||||
sizeof(struct rss_embed_reply_t) -
|
||||
RSS_COMMS_PAYLOAD_MAX_SIZE;
|
||||
PLAT_RSS_COMMS_PAYLOAD_MAX_SIZE;
|
||||
|
||||
/* Use embed if we can pack into one message and reply, else use
|
||||
* pointer_access. The underlying MHU transport protocol uses a
|
||||
|
|
|
@ -30,13 +30,13 @@ struct __packed rss_embed_msg_t {
|
|||
psa_handle_t handle;
|
||||
uint32_t ctrl_param; /* type, in_len, out_len */
|
||||
uint16_t io_size[PSA_MAX_IOVEC];
|
||||
uint8_t trailer[RSS_COMMS_PAYLOAD_MAX_SIZE];
|
||||
uint8_t trailer[PLAT_RSS_COMMS_PAYLOAD_MAX_SIZE];
|
||||
};
|
||||
|
||||
struct __packed rss_embed_reply_t {
|
||||
int32_t return_val;
|
||||
uint16_t out_size[PSA_MAX_IOVEC];
|
||||
uint8_t trailer[RSS_COMMS_PAYLOAD_MAX_SIZE];
|
||||
uint8_t trailer[PLAT_RSS_COMMS_PAYLOAD_MAX_SIZE];
|
||||
};
|
||||
|
||||
psa_status_t rss_protocol_embed_serialize_msg(psa_handle_t handle,
|
||||
|
|
|
@ -407,8 +407,8 @@ ifneq (${PLAT_RSS_NOT_SUPPORTED},1)
|
|||
BL1_SOURCES += ${RSS_COMMS_SOURCES}
|
||||
BL2_SOURCES += ${RSS_COMMS_SOURCES}
|
||||
|
||||
BL1_CFLAGS += -DPLAT_ATTEST_TOKEN_MAX_SIZE=0
|
||||
BL2_CFLAGS += -DPLAT_ATTEST_TOKEN_MAX_SIZE=0
|
||||
BL1_CFLAGS += -DPLAT_RSS_COMMS_PAYLOAD_MAX_SIZE=0
|
||||
BL2_CFLAGS += -DPLAT_RSS_COMMS_PAYLOAD_MAX_SIZE=0
|
||||
endif
|
||||
|
||||
endif
|
||||
|
|
Loading…
Add table
Reference in a new issue