This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to set secondary core's registers from primary arm?

Hi all,

Im working on Keystone II Tci6638k2k(4arm+8dsp) custom design board with u-boot. I understand that how u-boot working.

U-boot gives entry point to other cores. Other cores take program counters with this way. But i want to give core registers too. Is it possible? Can primary arm access secondary arm's registers?

Best Regards.

Srt

Parents
  • Hi Sebastien,

    You are correct. The only way for setting secondary core's registers is make them to changed itself. So this works;

         -     Primary arm can give only entry point adress to secondary arms (i give them fake entry adresses)

         -     Secondary arms entry point points a function (this function used for setting own core registers)

         -     At the end of function secondary arms jump to real entry adress.

    So primary arm gives only a function pointer adress for entry point to secondary arms.

    Secondary arms run this function first, and jump real code start adress.

    Thank you for your responses.

    Best Regards.

    Srt

Reply
  • Hi Sebastien,

    You are correct. The only way for setting secondary core's registers is make them to changed itself. So this works;

         -     Primary arm can give only entry point adress to secondary arms (i give them fake entry adresses)

         -     Secondary arms entry point points a function (this function used for setting own core registers)

         -     At the end of function secondary arms jump to real entry adress.

    So primary arm gives only a function pointer adress for entry point to secondary arms.

    Secondary arms run this function first, and jump real code start adress.

    Thank you for your responses.

    Best Regards.

    Srt

Children
No data