Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/mips/pm_machdep.c
Show First 20 Lines • Show All 467 Lines • ▼ Show 20 Lines | #endif | ||||
td->td_frame->a2 = 0; | td->td_frame->a2 = 0; | ||||
td->td_frame->a3 = (register_t)imgp->ps_strings; | td->td_frame->a3 = (register_t)imgp->ps_strings; | ||||
td->td_md.md_flags &= ~MDTD_FPUSED; | td->td_md.md_flags &= ~MDTD_FPUSED; | ||||
if (PCPU_GET(fpcurthread) == td) | if (PCPU_GET(fpcurthread) == td) | ||||
PCPU_SET(fpcurthread, (struct thread *)0); | PCPU_SET(fpcurthread, (struct thread *)0); | ||||
td->td_md.md_ss_addr = 0; | td->td_md.md_ss_addr = 0; | ||||
td->td_md.md_tls = NULL; | |||||
#ifdef COMPAT_FREEBSD32 | #ifdef COMPAT_FREEBSD32 | ||||
if (!SV_PROC_FLAG(td->td_proc, SV_LP64)) | if (!SV_PROC_FLAG(td->td_proc, SV_LP64)) | ||||
td->td_md.md_tls_tcb_offset = TLS_TP_OFFSET + TLS_TCB_SIZE32; | td->td_proc->p_md.md_tls_tcb_offset = TLS_TP_OFFSET + | ||||
TLS_TCB_SIZE32; | |||||
else | else | ||||
#endif | #endif | ||||
td->td_md.md_tls_tcb_offset = TLS_TP_OFFSET + TLS_TCB_SIZE; | td->td_proc->p_md.md_tls_tcb_offset = TLS_TP_OFFSET + | ||||
TLS_TCB_SIZE; | |||||
} | } | ||||
int | int | ||||
ptrace_clear_single_step(struct thread *td) | ptrace_clear_single_step(struct thread *td) | ||||
{ | { | ||||
struct proc *p; | struct proc *p; | ||||
int error; | int error; | ||||
Show All 27 Lines |