I am working on a multicore processor.
I want to make an AMP system, that is -- I have one application successfully running on core0, I want exactly the same application to run core1 too. But both the applications will not interact with each other - just like two different applications are running on different cores.
How can I do it? May plan is : 1. Copy the already complied application to a different location of RAM and give the starting address of the new location to the core1 to start executing from there. Using the linker script.
Have any of you have tried it? If you have tried it, then can you give me an example code on how to write the linker script for it - because I am new to compiling and generating ELF file. I tried googling for many days, I only get the algorithm to do it but no code from where I can learn it.
Thanks,
P:S -- there is no OS implemented as its only one thread that needs to be executed all the time. and all the cores will be executing their own instance of the thread independently. In short -- all the core will be executing the same application but independently with different instances of it.