svn commit: r219226 - stable/8/sys/pc98/pc98

Takahashi Yoshihiro nyan at FreeBSD.org
Thu Mar 3 11:52:08 UTC 2011


Author: nyan
Date: Thu Mar  3 11:52:07 2011
New Revision: 219226
URL: http://svn.freebsd.org/changeset/base/219226

Log:
  MFC: revision 218843
  
    To avoid excessive code duplication create wrapper for fill regs
    from stack frame.

Modified:
  stable/8/sys/pc98/pc98/machdep.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/pc98/pc98/machdep.c
==============================================================================
--- stable/8/sys/pc98/pc98/machdep.c	Thu Mar  3 11:45:54 2011	(r219225)
+++ stable/8/sys/pc98/pc98/machdep.c	Thu Mar  3 11:52:07 2011	(r219226)
@@ -2432,6 +2432,13 @@ fill_regs(struct thread *td, struct reg 
 
 	tp = td->td_frame;
 	pcb = td->td_pcb;
+	regs->r_gs = pcb->pcb_gs;
+	return (fill_frame_regs(tp, regs));
+}
+
+int
+fill_frame_regs(struct trapframe *tp, struct reg *regs)
+{
 	regs->r_fs = tp->tf_fs;
 	regs->r_es = tp->tf_es;
 	regs->r_ds = tp->tf_ds;
@@ -2447,7 +2454,6 @@ fill_regs(struct thread *td, struct reg 
 	regs->r_eflags = tp->tf_eflags;
 	regs->r_esp = tp->tf_esp;
 	regs->r_ss = tp->tf_ss;
-	regs->r_gs = pcb->pcb_gs;
 	return (0);
 }
 


More information about the svn-src-stable-8 mailing list