• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/i386/

Lines Matching defs:thr_act

131 void		act_machine_throughcall(thread_t thr_act);
946 thread_t thr_act,
960 if (thread_is_64bit(thr_act))
974 saved_state = USER_REGS32(thr_act);
1022 if (!thread_is_64bit(thr_act))
1042 saved_state = USER_REGS64(thr_act);
1085 if (thread_is_64bit(thr_act))
1088 return fpu_set_fxstate(thr_act, tstate);
1096 if ( !thread_is_64bit(thr_act))
1099 return fpu_set_fxstate(thr_act, tstate);
1111 thread_is_64bit(thr_act)) {
1112 return fpu_set_fxstate(thr_act, (thread_state_t)&state->ufs.fs64);
1115 !thread_is_64bit(thr_act)) {
1116 return fpu_set_fxstate(thr_act, (thread_state_t)&state->ufs.fs32);
1126 if (thread_is_64bit(thr_act))
1129 return set_thread_state32(thr_act, (x86_thread_state32_t *)tstate);
1137 if (!thread_is_64bit(thr_act))
1140 return set_thread_state64(thr_act, (x86_thread_state64_t *)tstate);
1154 thread_is_64bit(thr_act)) {
1155 return set_thread_state64(thr_act, &state->uts.ts64);
1158 !thread_is_64bit(thr_act)) {
1159 return set_thread_state32(thr_act, &state->uts.ts32);
1170 if (thread_is_64bit(thr_act))
1175 ret = set_debug_state32(thr_act, state);
1184 if (!thread_is_64bit(thr_act))
1189 ret = set_debug_state64(thr_act, state);
1204 thread_is_64bit(thr_act)) {
1205 ret = set_debug_state64(thr_act, &state->uds.ds64);
1210 !thread_is_64bit(thr_act)) {
1211 ret = set_debug_state32(thr_act, &state->uds.ds32);
1232 thread_t thr_act,
1275 if (thread_is_64bit(thr_act))
1279 saved_state = USER_REGS32(thr_act);
1302 if (!thread_is_64bit(thr_act))
1306 saved_state = USER_REGS64(thr_act);
1324 if (thread_is_64bit(thr_act))
1329 return fpu_get_fxstate(thr_act, tstate);
1337 if ( !thread_is_64bit(thr_act))
1342 return fpu_get_fxstate(thr_act, tstate);
1359 if (thread_is_64bit(thr_act)) {
1363 kret = fpu_get_fxstate(thr_act, (thread_state_t)&state->ufs.fs64);
1368 kret = fpu_get_fxstate(thr_act, (thread_state_t)&state->ufs.fs32);
1380 if (thread_is_64bit(thr_act))
1385 get_thread_state32(thr_act, (x86_thread_state32_t *)tstate);
1394 if ( !thread_is_64bit(thr_act))
1399 get_thread_state64(thr_act, (x86_thread_state64_t *)tstate);
1414 if (thread_is_64bit(thr_act)) {
1418 get_thread_state64(thr_act, &state->uts.ts64);
1423 get_thread_state32(thr_act, &state->uts.ts32);
1436 if (thread_is_64bit(thr_act))
1441 get_exception_state32(thr_act, (x86_exception_state32_t *)tstate);
1450 if ( !thread_is_64bit(thr_act))
1455 get_exception_state64(thr_act, (x86_exception_state64_t *)tstate);
1470 if (thread_is_64bit(thr_act)) {
1474 get_exception_state64(thr_act, &state->ues.es64);
1479 get_exception_state32(thr_act, &state->ues.es32);
1490 if (thread_is_64bit(thr_act))
1493 get_debug_state32(thr_act, (x86_debug_state32_t *)tstate);
1504 if (!thread_is_64bit(thr_act))
1507 get_debug_state64(thr_act, (x86_debug_state64_t *)tstate);
1524 if (thread_is_64bit(thr_act)) {
1528 get_debug_state64(thr_act, &state->uds.ds64);
1533 get_debug_state32(thr_act, &state->uds.ds32);
1803 * This is used to set the current thr_act/thread
1893 int dump_act(thread_t thr_act);
1896 dump_handlers(thread_t thr_act)
1898 ReturnHandler *rhp = thr_act->handlers;
1903 if (rhp == &thr_act->special_handler){
1920 dump_regs(thread_t thr_act)
1922 if (thr_act->machine.pcb == NULL)
1925 if (thread_is_64bit(thr_act)) {
1928 ssp = USER_REGS64(thr_act);
1935 ssp = USER_REGS32(thr_act);
1951 dump_act(thread_t thr_act)
1953 if (!thr_act)
1957 thr_act, thr_act->ref_count,
1958 thr_act->task,
1959 thr_act->task ? thr_act->task->ref_count : 0);
1962 thr_act->suspend_count, thr_act->user_stop_count,
1963 thr_act->active, thr_act->ast);
1964 printf("\tpcb=%p\n", thr_act->machine.pcb);
1966 if (thr_act->kernel_stack) {
1967 vm_offset_t stack = thr_act->kernel_stack;
1974 dump_handlers(thr_act);
1975 dump_regs(thr_act);
1976 return((int)thr_act);
1982 thread_t thr_act = current_thread();
1984 if (thr_act->machine.pcb == NULL)
1987 if (thread_is_64bit(thr_act)) {
1990 iss64 = USER_REGS64(thr_act);
1996 iss32 = USER_REGS32(thr_act);
2109 thread_t thr_act = current_thread();
2111 if (thread_is_64bit(thr_act)) {
2120 kret = machine_thread_get_state(thr_act, x86_SAVED_STATE64,
2127 kret = machine_thread_get_state(thr_act, x86_FLOAT_STATE64,
2136 kret = machine_thread_get_state(thr_act,
2155 kret = machine_thread_get_state(thr_act, x86_SAVED_STATE32,
2162 kret = machine_thread_get_state(thr_act, x86_FLOAT_STATE32,
2170 kret = machine_thread_get_state(thr_act,
2186 thread_t thr_act = current_thread();
2192 if (thread_is_64bit(thr_act)) {
2197 kret = machine_thread_set_state(thr_act, x86_SAVED_STATE64,
2200 machine_thread_set_state(thr_act, x86_FLOAT_STATE64,
2209 kret = machine_thread_set_state(thr_act, x86_SAVED_STATE32,
2212 kret = machine_thread_set_state(thr_act, x86_FLOAT_STATE32,
2214 if (kret == KERN_SUCCESS && thr_act->machine.pcb->ids)
2215 machine_thread_set_state(thr_act,