Hello,
i want to use the arm cortex a9 to share memory between both cores. are there any examples online?
Thanks,
Mike
Hi,
To help you, we need a little more informations . Is that an hardware question or question about programming language ? I suggest you to read for start :
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0228a/index.html
Shared memory management is directly managed in general by operating system.Look at for SMP ARM Process for more than explainations.
Here an old smp procces :
http://lxr.free-electrons.com/source/arch/arm/kernel/smp.c
You need to refresh it by downloading the lastest kernel source !
If they are both in the same "MP" cluster you just need to make sure both cores set up their page tables with the pages you want to share marked as "cacheable and shared" - any access to that physical address will then automatically be memory coherent. In general any memory you want to share should have identical page table attributes in both operating systems or you get undefined behaviour.
ok thanks for the info.... are there samples available which i could look at...like application notes?
this question is a hardware as well as software question.
first you need to setup the ram to be shared by core0 and core1...
second you need some code to establish the data sharing...