From 30fd12c687956e20a91c6ded5cab05d61d2f4da4 Mon Sep 17 00:00:00 2001 From: yintao Date: Thu, 22 Feb 2024 12:21:15 +0800 Subject: [PATCH] sim/sim_rptun.c: Fixed data type for sim_rptun_shmem_s Use fixed length data type for the struct shared in cross-core communication Signed-off-by: yintao --- arch/sim/src/sim/sim_rptun.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/sim/src/sim/sim_rptun.c b/arch/sim/src/sim/sim_rptun.c index 474d37f7bd0..203038fc46b 100644 --- a/arch/sim/src/sim/sim_rptun.c +++ b/arch/sim/src/sim/sim_rptun.c @@ -52,13 +52,13 @@ struct sim_rptun_shmem_s { - volatile uintptr_t base; - volatile unsigned int seqs; - volatile unsigned int seqm; - volatile unsigned int cmds; - volatile unsigned int cmdm; - volatile unsigned int boots; - volatile unsigned int bootm; + volatile uint64_t base; + volatile uint32_t seqs; + volatile uint32_t seqm; + volatile uint32_t cmds; + volatile uint32_t cmdm; + volatile uint32_t boots; + volatile uint32_t bootm; struct rptun_rsc_s rsc; char buf[0x10000]; }; @@ -69,7 +69,7 @@ struct sim_rptun_dev_s rptun_callback_t callback; void *arg; int master; - unsigned int seq; + uint32_t seq; struct sim_rptun_shmem_s *shmem; struct simple_addrenv_s addrenv[2]; char cpuname[RPMSG_NAME_SIZE + 1];