diff options
author | peter <peter@FreeBSD.org> | 2005-10-04 23:26:00 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2005-10-04 23:26:00 +0000 |
commit | 4c39c2be2fe6778a72a02fdbdbaea9a2c50c6ac9 (patch) | |
tree | 0bf91514bbd30c0b8add5b46236af7b36d748067 /sys | |
parent | 8b90b05d8756a00afff7eb30721d19c5442a80d3 (diff) | |
download | FreeBSD-src-4c39c2be2fe6778a72a02fdbdbaea9a2c50c6ac9.zip FreeBSD-src-4c39c2be2fe6778a72a02fdbdbaea9a2c50c6ac9.tar.gz |
Don't set segment registers via ptrace yet. Its not ready.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/ia32/ia32_reg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/ia32/ia32_reg.c b/sys/amd64/ia32/ia32_reg.c index 4f75e4d..b66dbbd 100644 --- a/sys/amd64/ia32/ia32_reg.c +++ b/sys/amd64/ia32/ia32_reg.c @@ -112,12 +112,14 @@ set_regs32(struct thread *td, struct reg32 *regs) if (!EFL_SECURE(regs->r_eflags, tp->tf_rflags) || !CS_SECURE(regs->r_cs)) return (EINVAL); pcb = td->td_pcb; +#if 0 load_fs(regs->r_fs); pcb->pcb_fs = regs->r_fs; load_es(regs->r_es); pcb->pcb_es = regs->r_es; load_ds(regs->r_ds); pcb->pcb_ds = regs->r_ds; +#endif tp->tf_rdi = regs->r_edi; tp->tf_rsi = regs->r_esi; tp->tf_rbp = regs->r_ebp; @@ -130,8 +132,10 @@ set_regs32(struct thread *td, struct reg32 *regs) tp->tf_rflags = regs->r_eflags; tp->tf_rsp = regs->r_esp; tp->tf_ss = regs->r_ss; +#if 0 load_gs(regs->r_gs); pcb->pcb_gs = regs->r_gs; +#endif return (0); } |