Lines Matching defs:thr_act

794 	thread_t thr_act,
808 if (thread_is_64bit(thr_act))
822 pal_register_cache_state(thr_act, DIRTY);
824 saved_state = USER_REGS32(thr_act);
873 if (!thread_is_64bit(thr_act))
893 pal_register_cache_state(thr_act, DIRTY);
895 saved_state = USER_REGS64(thr_act);
939 if (thread_is_64bit(thr_act))
942 return fpu_set_fxstate(thr_act, tstate, flavor);
950 if ( !thread_is_64bit(thr_act))
953 return fpu_set_fxstate(thr_act, tstate, flavor);
965 thread_is_64bit(thr_act)) {
966 return fpu_set_fxstate(thr_act, (thread_state_t)&state->ufs.fs64, x86_FLOAT_STATE64);
969 !thread_is_64bit(thr_act)) {
970 return fpu_set_fxstate(thr_act, (thread_state_t)&state->ufs.fs32, x86_FLOAT_STATE32);
980 if (thread_is_64bit(thr_act))
983 return fpu_set_fxstate(thr_act, tstate, flavor);
991 if (!thread_is_64bit(thr_act))
994 return fpu_set_fxstate(thr_act, tstate, flavor);
1007 thread_is_64bit(thr_act)) {
1008 return fpu_set_fxstate(thr_act,
1014 !thread_is_64bit(thr_act)) {
1015 return fpu_set_fxstate(thr_act,
1027 if (thread_is_64bit(thr_act))
1030 return set_thread_state32(thr_act, (x86_thread_state32_t *)tstate);
1038 if (!thread_is_64bit(thr_act))
1041 return set_thread_state64(thr_act, (x86_thread_state64_t *)tstate);
1055 thread_is_64bit(thr_act)) {
1056 return set_thread_state64(thr_act, &state->uts.ts64);
1059 !thread_is_64bit(thr_act)) {
1060 return set_thread_state32(thr_act, &state->uts.ts32);
1071 if (thread_is_64bit(thr_act))
1076 ret = set_debug_state32(thr_act, state);
1085 if (!thread_is_64bit(thr_act))
1090 ret = set_debug_state64(thr_act, state);
1105 thread_is_64bit(thr_act)) {
1106 ret = set_debug_state64(thr_act, &state->uds.ds64);
1111 !thread_is_64bit(thr_act)) {
1112 ret = set_debug_state32(thr_act, &state->uds.ds32);
1133 thread_t thr_act,
1191 if (thread_is_64bit(thr_act))
1195 saved_state = USER_REGS32(thr_act);
1218 if (!thread_is_64bit(thr_act))
1222 saved_state = USER_REGS64(thr_act);
1240 if (thread_is_64bit(thr_act))
1245 return fpu_get_fxstate(thr_act, tstate, flavor);
1253 if ( !thread_is_64bit(thr_act))
1258 return fpu_get_fxstate(thr_act, tstate, flavor);
1275 if (thread_is_64bit(thr_act)) {
1279 kret = fpu_get_fxstate(thr_act, (thread_state_t)&state->ufs.fs64, x86_FLOAT_STATE64);
1284 kret = fpu_get_fxstate(thr_act, (thread_state_t)&state->ufs.fs32, x86_FLOAT_STATE32);
1296 if (thread_is_64bit(thr_act))
1301 return fpu_get_fxstate(thr_act, tstate, flavor);
1309 if ( !thread_is_64bit(thr_act))
1314 return fpu_get_fxstate(thr_act, tstate, flavor);
1328 if (thread_is_64bit(thr_act)) {
1331 kret = fpu_get_fxstate(thr_act,
1337 kret = fpu_get_fxstate(thr_act,
1351 if (thread_is_64bit(thr_act))
1356 get_thread_state32(thr_act, (x86_thread_state32_t *)tstate);
1365 if ( !thread_is_64bit(thr_act))
1370 get_thread_state64(thr_act, (x86_thread_state64_t *)tstate);
1385 if (thread_is_64bit(thr_act)) {
1389 get_thread_state64(thr_act, &state->uts.ts64);
1394 get_thread_state32(thr_act, &state->uts.ts32);
1407 if (thread_is_64bit(thr_act))
1412 get_exception_state32(thr_act, (x86_exception_state32_t *)tstate);
1426 if ( !thread_is_64bit(thr_act))
1431 get_exception_state64(thr_act, (x86_exception_state64_t *)tstate);
1451 if (thread_is_64bit(thr_act)) {
1455 get_exception_state64(thr_act, &state->ues.es64);
1460 get_exception_state32(thr_act, &state->ues.es32);
1471 if (thread_is_64bit(thr_act))
1474 get_debug_state32(thr_act, (x86_debug_state32_t *)tstate);
1485 if (!thread_is_64bit(thr_act))
1488 get_debug_state64(thr_act, (x86_debug_state64_t *)tstate);
1505 if (thread_is_64bit(thr_act)) {
1509 get_debug_state64(thr_act, &state->uds.ds64);
1514 get_debug_state32(thr_act, &state->uds.ds32);
1722 * This is used to set the current thr_act/thread
1756 thread_t thr_act = current_thread();
1758 if (thread_is_64bit(thr_act)) {
1761 iss64 = USER_REGS64(thr_act);
1767 iss32 = USER_REGS32(thr_act);
1900 thread_t thr_act = current_thread();
1902 if (thread_is_64bit(thr_act)) {
1911 kret = machine_thread_get_state(thr_act, x86_SAVED_STATE64,
1918 kret = machine_thread_get_state(thr_act, x86_FLOAT_STATE64,
1926 kret = machine_thread_get_state(thr_act,
1945 kret = machine_thread_get_state(thr_act, x86_SAVED_STATE32,
1952 kret = machine_thread_get_state(thr_act, x86_FLOAT_STATE32,
1960 kret = machine_thread_get_state(thr_act,
1976 thread_t thr_act = current_thread();
1982 if (thread_is_64bit(thr_act)) {
1987 kret = machine_thread_set_state(thr_act, x86_SAVED_STATE64,
1990 machine_thread_set_state(thr_act, x86_FLOAT_STATE64,
1999 kret = machine_thread_set_state(thr_act, x86_SAVED_STATE32,
2002 (void) machine_thread_set_state(thr_act, x86_FLOAT_STATE32,