Lines Matching defs:thr_act

791 	thread_t thr_act,
805 if (thread_is_64bit(thr_act))
819 pal_register_cache_state(thr_act, DIRTY);
821 saved_state = USER_REGS32(thr_act);
870 if (!thread_is_64bit(thr_act))
890 pal_register_cache_state(thr_act, DIRTY);
892 saved_state = USER_REGS64(thr_act);
936 if (thread_is_64bit(thr_act))
939 return fpu_set_fxstate(thr_act, tstate, flavor);
947 if ( !thread_is_64bit(thr_act))
950 return fpu_set_fxstate(thr_act, tstate, flavor);
962 thread_is_64bit(thr_act)) {
963 return fpu_set_fxstate(thr_act, (thread_state_t)&state->ufs.fs64, x86_FLOAT_STATE64);
966 !thread_is_64bit(thr_act)) {
967 return fpu_set_fxstate(thr_act, (thread_state_t)&state->ufs.fs32, x86_FLOAT_STATE32);
977 if (thread_is_64bit(thr_act))
980 return fpu_set_fxstate(thr_act, tstate, flavor);
988 if (!thread_is_64bit(thr_act))
991 return fpu_set_fxstate(thr_act, tstate, flavor);
1004 thread_is_64bit(thr_act)) {
1005 return fpu_set_fxstate(thr_act,
1011 !thread_is_64bit(thr_act)) {
1012 return fpu_set_fxstate(thr_act,
1024 if (thread_is_64bit(thr_act))
1027 return set_thread_state32(thr_act, (x86_thread_state32_t *)tstate);
1035 if (!thread_is_64bit(thr_act))
1038 return set_thread_state64(thr_act, (x86_thread_state64_t *)tstate);
1052 thread_is_64bit(thr_act)) {
1053 return set_thread_state64(thr_act, &state->uts.ts64);
1056 !thread_is_64bit(thr_act)) {
1057 return set_thread_state32(thr_act, &state->uts.ts32);
1068 if (thread_is_64bit(thr_act))
1073 ret = set_debug_state32(thr_act, state);
1082 if (!thread_is_64bit(thr_act))
1087 ret = set_debug_state64(thr_act, state);
1102 thread_is_64bit(thr_act)) {
1103 ret = set_debug_state64(thr_act, &state->uds.ds64);
1108 !thread_is_64bit(thr_act)) {
1109 ret = set_debug_state32(thr_act, &state->uds.ds32);
1130 thread_t thr_act,
1188 if (thread_is_64bit(thr_act))
1192 saved_state = USER_REGS32(thr_act);
1215 if (!thread_is_64bit(thr_act))
1219 saved_state = USER_REGS64(thr_act);
1237 if (thread_is_64bit(thr_act))
1242 return fpu_get_fxstate(thr_act, tstate, flavor);
1250 if ( !thread_is_64bit(thr_act))
1255 return fpu_get_fxstate(thr_act, tstate, flavor);
1272 if (thread_is_64bit(thr_act)) {
1276 kret = fpu_get_fxstate(thr_act, (thread_state_t)&state->ufs.fs64, x86_FLOAT_STATE64);
1281 kret = fpu_get_fxstate(thr_act, (thread_state_t)&state->ufs.fs32, x86_FLOAT_STATE32);
1293 if (thread_is_64bit(thr_act))
1298 return fpu_get_fxstate(thr_act, tstate, flavor);
1306 if ( !thread_is_64bit(thr_act))
1311 return fpu_get_fxstate(thr_act, tstate, flavor);
1325 if (thread_is_64bit(thr_act)) {
1328 kret = fpu_get_fxstate(thr_act,
1334 kret = fpu_get_fxstate(thr_act,
1348 if (thread_is_64bit(thr_act))
1353 get_thread_state32(thr_act, (x86_thread_state32_t *)tstate);
1362 if ( !thread_is_64bit(thr_act))
1367 get_thread_state64(thr_act, (x86_thread_state64_t *)tstate);
1382 if (thread_is_64bit(thr_act)) {
1386 get_thread_state64(thr_act, &state->uts.ts64);
1391 get_thread_state32(thr_act, &state->uts.ts32);
1404 if (thread_is_64bit(thr_act))
1409 get_exception_state32(thr_act, (x86_exception_state32_t *)tstate);
1423 if ( !thread_is_64bit(thr_act))
1428 get_exception_state64(thr_act, (x86_exception_state64_t *)tstate);
1448 if (thread_is_64bit(thr_act)) {
1452 get_exception_state64(thr_act, &state->ues.es64);
1457 get_exception_state32(thr_act, &state->ues.es32);
1468 if (thread_is_64bit(thr_act))
1471 get_debug_state32(thr_act, (x86_debug_state32_t *)tstate);
1482 if (!thread_is_64bit(thr_act))
1485 get_debug_state64(thr_act, (x86_debug_state64_t *)tstate);
1502 if (thread_is_64bit(thr_act)) {
1506 get_debug_state64(thr_act, &state->uds.ds64);
1511 get_debug_state32(thr_act, &state->uds.ds32);
1723 * This is used to set the current thr_act/thread
1771 int dump_act(thread_t thr_act);
1774 dump_handlers(thread_t thr_act)
1776 ReturnHandler *rhp = thr_act->handlers;
1781 if (rhp == &thr_act->special_handler){
1798 dump_regs(thread_t thr_act)
1800 if (thread_is_64bit(thr_act)) {
1803 ssp = USER_REGS64(thr_act);
1810 ssp = USER_REGS32(thr_act);
1826 dump_act(thread_t thr_act)
1828 if (!thr_act)
1832 thr_act, thr_act->ref_count,
1833 thr_act->task,
1834 thr_act->task ? thr_act->task->ref_count : 0);
1837 thr_act->suspend_count, thr_act->user_stop_count,
1838 thr_act->active, thr_act->ast);
1839 printf("\tpcb=%p\n", &thr_act->machine);
1841 if (thr_act->kernel_stack) {
1842 vm_offset_t stack = thr_act->kernel_stack;
1846 STACK_IKS(stack)->k_esp, thr_act->machine.iss);
1849 dump_handlers(thr_act);
1850 dump_regs(thr_act);
1851 return((int)thr_act);
1858 thread_t thr_act = current_thread();
1860 if (thread_is_64bit(thr_act)) {
1863 iss64 = USER_REGS64(thr_act);
1869 iss32 = USER_REGS32(thr_act);
1992 thread_t thr_act = current_thread();
1994 if (thread_is_64bit(thr_act)) {
2003 kret = machine_thread_get_state(thr_act, x86_SAVED_STATE64,
2010 kret = machine_thread_get_state(thr_act, x86_FLOAT_STATE64,
2018 kret = machine_thread_get_state(thr_act,
2037 kret = machine_thread_get_state(thr_act, x86_SAVED_STATE32,
2044 kret = machine_thread_get_state(thr_act, x86_FLOAT_STATE32,
2052 kret = machine_thread_get_state(thr_act,
2068 thread_t thr_act = current_thread();
2074 if (thread_is_64bit(thr_act)) {
2079 kret = machine_thread_set_state(thr_act, x86_SAVED_STATE64,
2082 machine_thread_set_state(thr_act, x86_FLOAT_STATE64,
2091 kret = machine_thread_set_state(thr_act, x86_SAVED_STATE32,
2094 (void) machine_thread_set_state(thr_act, x86_FLOAT_STATE32,