fix(scmi): make msg_header variable volatile

When tf-a is built with the llvm toolchain, the compiler optimizes the
variable in some way which results in SCMI_MSG_GET_TOKEN assert failure
in multiple places. This patch makes the msg_header variable in
mailbox_mem struct volatile, which seems to fix the issue.

Signed-off-by: sahil <sahil@arm.com>
Change-Id: I1d28b30a6472fc23ed85adff9cf73dfb536e39cc
This commit is contained in:
sah01 2021-12-08 06:29:59 +00:00 committed by sahil
parent 0628fe3fff
commit 99477f051e
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ typedef struct mailbox_mem {
uint64_t res_b; /* Reserved */
uint32_t flags;
volatile uint32_t len;
uint32_t msg_header;
volatile uint32_t msg_header;
uint32_t payload[];
} mailbox_mem_t;