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 <yintao@xiaomi.com>
This commit is contained in:
parent
5a04670600
commit
30fd12c687
|
@ -52,13 +52,13 @@
|
||||||
|
|
||||||
struct sim_rptun_shmem_s
|
struct sim_rptun_shmem_s
|
||||||
{
|
{
|
||||||
volatile uintptr_t base;
|
volatile uint64_t base;
|
||||||
volatile unsigned int seqs;
|
volatile uint32_t seqs;
|
||||||
volatile unsigned int seqm;
|
volatile uint32_t seqm;
|
||||||
volatile unsigned int cmds;
|
volatile uint32_t cmds;
|
||||||
volatile unsigned int cmdm;
|
volatile uint32_t cmdm;
|
||||||
volatile unsigned int boots;
|
volatile uint32_t boots;
|
||||||
volatile unsigned int bootm;
|
volatile uint32_t bootm;
|
||||||
struct rptun_rsc_s rsc;
|
struct rptun_rsc_s rsc;
|
||||||
char buf[0x10000];
|
char buf[0x10000];
|
||||||
};
|
};
|
||||||
|
@ -69,7 +69,7 @@ struct sim_rptun_dev_s
|
||||||
rptun_callback_t callback;
|
rptun_callback_t callback;
|
||||||
void *arg;
|
void *arg;
|
||||||
int master;
|
int master;
|
||||||
unsigned int seq;
|
uint32_t seq;
|
||||||
struct sim_rptun_shmem_s *shmem;
|
struct sim_rptun_shmem_s *shmem;
|
||||||
struct simple_addrenv_s addrenv[2];
|
struct simple_addrenv_s addrenv[2];
|
||||||
char cpuname[RPMSG_NAME_SIZE + 1];
|
char cpuname[RPMSG_NAME_SIZE + 1];
|
||||||
|
|
Loading…
Reference in New Issue