Lines Matching refs:thread_t
90 #define SAVE_REGS(thread_t, retaddr) \
91 movq %rbp, T_RBP(thread_t); \
92 movq %rbx, T_RBX(thread_t); \
93 movq %r12, T_R12(thread_t); \
94 movq %r13, T_R13(thread_t); \
95 movq %r14, T_R14(thread_t); \
96 movq %r15, T_R15(thread_t); \
99 movq %rsp, T_SP(thread_t); \
100 movq retaddr, T_PC(thread_t); \
126 #define GET_THREAD_HATP(hatp, thread_t, scratch_reg) \
127 movq T_PROCP(thread_t), hatp; \
143 #define STORE_INTR_START(thread_t) \
144 testw $T_INTR_THREAD, T_FLAGS(thread_t); \
148 movq T_INTR_START(thread_t), %rax; \
149 cmpxchgq %r14, T_INTR_START(thread_t); \
161 #define SAVE_REGS(thread_t, retaddr) \
162 movl %ebp, T_EBP(thread_t); \
163 movl %ebx, T_EBX(thread_t); \
164 movl %esi, T_ESI(thread_t); \
165 movl %edi, T_EDI(thread_t); \
168 movl %esp, T_SP(thread_t); \
169 movl retaddr, T_PC(thread_t); \
192 #define GET_THREAD_HATP(hatp, thread_t, scratch_reg) \
193 movl T_PROCP(thread_t), hatp; \
205 #define STORE_INTR_START(thread_t) \
206 testw $T_INTR_THREAD, T_FLAGS(thread_t); \
210 pushl T_INTR_START(thread_t); \
211 pushl T_INTR_START+4(thread_t); \
217 cmpxchg8b T_INTR_START(thread_t); \