Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Feb 2011 10:36:05 +0000 (UTC)
From:      Takahashi Yoshihiro <nyan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218843 - head/sys/pc98/pc98
Message-ID:  <201102191036.p1JAa51P092999@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nyan
Date: Sat Feb 19 10:36:05 2011
New Revision: 218843
URL: http://svn.freebsd.org/changeset/base/218843

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

Modified:
  head/sys/pc98/pc98/machdep.c

Modified: head/sys/pc98/pc98/machdep.c
==============================================================================
--- head/sys/pc98/pc98/machdep.c	Sat Feb 19 10:32:12 2011	(r218842)
+++ head/sys/pc98/pc98/machdep.c	Sat Feb 19 10:36:05 2011	(r218843)
@@ -2458,6 +2458,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;
@@ -2473,7 +2480,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);
 }
 



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