Lines Matching refs:thread
24 #include <thread.h>
188 Thread *thread = thread_get_current_thread();
191 if (thread)
192 m68k_push_iframe(&thread->arch_info.iframes, iframe);
206 // if this thread has a fault handler, we're allowed to be here
207 if (thread && thread->fault_handler != 0) {
208 iframe->cpu.pc = reinterpret_cast<addr_t>(thread->fault_handler);
223 // disabled, which in most cases is a bug. We should add some thread
225 if (thread && thread->fault_handler != 0) {
226 iframe->cpu.pc = reinterpret_cast<addr_t>(thread->fault_handler);
237 } else if (thread != NULL && thread->page_faults_allowed < 1) {
308 if (thread->cpu->invoke_scheduler) {
309 SpinLocker schedulerLocker(thread->scheduler_lock);
313 } else if (hardwareInterrupt && thread->post_interrupt_callback != NULL) {
314 void (*callback)(void*) = thread->post_interrupt_callback;
315 void* data = thread->post_interrupt_data;
317 thread->post_interrupt_callback = NULL;
318 thread->post_interrupt_data = NULL;
326 if (thread)
327 m68k_pop_iframe(&thread->arch_info.iframes);