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

ARMv8-A Instruction for Getting CPU Number

Hi,

I'm using a Juno r1 board and I'm trying to get processor's related CPU ID without using any header file like function sched_getcpu from sched.h.

The reason is I want to get the CPU number for TrustZone application and there is no way to using those header files.

I know there is an instruction CPUID which could be used in x86 for this purpose, so I'm wondering is there any instruction I could use for ARMv8-A?

Thanks.

Simon

Parents
  • Hi Matt mwsealey,

    I'm writing an applicantion running in the Secure World and I want to know on what CPU my application is running on.

    However, since I'm using the OPTEE and their Trusted Applications can't include the header file 'sched.h' so I can't use the function "sched_getcpu()" to get the information.

    So in this case, is there any way for me to get the CPU ID for a Trusted Application in Secure World?

    Thanks.

Reply
  • Hi Matt mwsealey,

    I'm writing an applicantion running in the Secure World and I want to know on what CPU my application is running on.

    However, since I'm using the OPTEE and their Trusted Applications can't include the header file 'sched.h' so I can't use the function "sched_getcpu()" to get the information.

    So in this case, is there any way for me to get the CPU ID for a Trusted Application in Secure World?

    Thanks.

Children