How to get cpu/core/thread id of logic processor on ia64
I'm working on ia64 platform. I want to get a logic processor's corresponding physical cpu id, core id and thread id (if applicable). For example, given logic processor 0, return its physical cpu id 0, core id 0 and thread id 0.
On x86/x86_64, we can use cpuid instruction (type 2) to get above information. But I don't know how to do similar thing on ia64.