Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Oct 2005 22:57:58 GMT
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 84828 for review
Message-ID:  <200510042257.j94MvwHN073375@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=84828

Change 84828 by peter@peter_melody on 2005/10/04 22:57:44

	Disable unsafe code

Affected files ...

.. //depot/projects/hammer/sys/amd64/ia32/ia32_reg.c#8 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/ia32/ia32_reg.c#8 (text+ko) ====

@@ -112,12 +112,14 @@
 	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 @@
 	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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510042257.j94MvwHN073375>