svn commit: r218843 - head/sys/pc98/pc98

[ Available lists | Index of svn-src-all | Month of Feb 2011 | Week of 19 Feb 2011 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Takahashi Yoshihiro <nyan@FreeBSD.org>
Date
19 Feb 2011 10:36:05
Subject
svn commit: r218843 - head/sys/pc98/pc98
Message-ID
201102191036.p1JAa51P092999@svn.freebsd.org


[ Hide this part ]
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);
}



Elapsed time: 0.692 seconds