Question

I was looking into source code of StarRuntime and I came across two terms x86_thread_state64_t & thread_act_t.

I tried to Google it but there is not much documentation. I see it being used consistently in apple open source projects? Can someone explain me what are they?

Was it helpful?

Solution

x86_thread_state64_t should be something like this

struct x86_thread_state64_t {
    uint64_t rax, rbx, rcx, rdx,
             rdi, rsi, rbp, rsp,
             r8, r9, r10, r11,
             r12, r13, r14, r15,
             rip, rflags,
             cs, fs, gs;
};

and

thread_act_t is

struct thread  *thread_act_t;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top