Date: Thu, 3 Mar 2011 11:52:08 +0000 (UTC) From: Takahashi Yoshihiro <nyan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r219226 - stable/8/sys/pc98/pc98 Message-ID: <201103031152.p23Bq8O3028410@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103031152.p23Bq8O3028410>