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);
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"