Lines Matching refs:ucontext
75 std::vector<uint8_t>* ucontext; member
85 ucontext_t ucontext; in GetContextAndExit() local
86 memset(&ucontext, 0, sizeof(ucontext)); in GetContextAndExit()
88 memcpy(&ucontext.uc_mcontext, regs->RawData(), sizeof(uint32_t) * 16); in GetContextAndExit()
90 memcpy(&ucontext.uc_mcontext, regs->RawData(), sizeof(uint64_t) * 33); in GetContextAndExit()
93 ucontext.uc_mcontext.gregs[0] = reg_data[15]; in GetContextAndExit()
94 ucontext.uc_mcontext.gregs[1] = reg_data[14]; in GetContextAndExit()
95 ucontext.uc_mcontext.gregs[2] = reg_data[13]; in GetContextAndExit()
96 ucontext.uc_mcontext.gregs[3] = reg_data[12]; in GetContextAndExit()
97 ucontext.uc_mcontext.gregs[4] = reg_data[7]; in GetContextAndExit()
98 ucontext.uc_mcontext.gregs[5] = reg_data[6]; in GetContextAndExit()
99 ucontext.uc_mcontext.gregs[6] = reg_data[5]; in GetContextAndExit()
100 ucontext.uc_mcontext.gregs[7] = reg_data[4]; in GetContextAndExit()
101 ucontext.uc_mcontext.gregs[8] = reg_data[3]; in GetContextAndExit()
102 ucontext.uc_mcontext.gregs[9] = reg_data[2]; in GetContextAndExit()
103 ucontext.uc_mcontext.gregs[10] = reg_data[1]; in GetContextAndExit()
104 ucontext.uc_mcontext.gregs[11] = reg_data[0]; in GetContextAndExit()
105 ucontext.uc_mcontext.gregs[14] = reg_data[8]; in GetContextAndExit()
106 ucontext.uc_mcontext.gregs[15] = reg_data[10]; in GetContextAndExit()
109 ucontext.uc_mcontext.gregs[0] = reg_data[8]; in GetContextAndExit()
110 ucontext.uc_mcontext.gregs[1] = reg_data[9]; in GetContextAndExit()
111 ucontext.uc_mcontext.gregs[2] = reg_data[10]; in GetContextAndExit()
112 ucontext.uc_mcontext.gregs[3] = reg_data[11]; in GetContextAndExit()
113 ucontext.uc_mcontext.gregs[4] = reg_data[12]; in GetContextAndExit()
114 ucontext.uc_mcontext.gregs[5] = reg_data[13]; in GetContextAndExit()
115 ucontext.uc_mcontext.gregs[6] = reg_data[14]; in GetContextAndExit()
116 ucontext.uc_mcontext.gregs[7] = reg_data[15]; in GetContextAndExit()
117 ucontext.uc_mcontext.gregs[8] = reg_data[5]; in GetContextAndExit()
118 ucontext.uc_mcontext.gregs[9] = reg_data[4]; in GetContextAndExit()
119 ucontext.uc_mcontext.gregs[10] = reg_data[6]; in GetContextAndExit()
120 ucontext.uc_mcontext.gregs[11] = reg_data[3]; in GetContextAndExit()
121 ucontext.uc_mcontext.gregs[12] = reg_data[1]; in GetContextAndExit()
122 ucontext.uc_mcontext.gregs[13] = reg_data[0]; in GetContextAndExit()
123 ucontext.uc_mcontext.gregs[14] = reg_data[2]; in GetContextAndExit()
124 ucontext.uc_mcontext.gregs[15] = reg_data[7]; in GetContextAndExit()
125 ucontext.uc_mcontext.gregs[16] = reg_data[16]; in GetContextAndExit()
128 arg->ucontext->resize(sizeof(ucontext)); in GetContextAndExit()
129 memcpy(arg->ucontext->data(), &ucontext, sizeof(ucontext)); in GetContextAndExit()
136 void test_get_context_and_wait(void* ucontext, volatile int* exit_flag) { in test_get_context_and_wait() argument
138 arg.ucontext = reinterpret_cast<std::vector<uint8_t>*>(ucontext); in test_get_context_and_wait()