Linux Code
The Linux code contains the following three elements:
- RPMsg code:
Inter-processor uses the standard
virtio-base
RPMsg protocol to communicate. RPMsg, also known as Remote Processor Messaging, defines the standard binary interface used for communication between cores in heterogeneous AMP system.In Linux kernel, the codes of RPMsg are:driver/rpmsg/virtio_rpmsg_bus.c drivers/rpmsg/starfive_rpmsg.c
- Mailbox
code:
drivers/mailbox/starfive_ipi_mailbox.c
- AMP DTS
file:
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2-amp.dts