Deleted Added
full compact
machdep.c (338691) machdep.c (341491)
1/*-
2 * Copyright (c) 1992 Terrence R. Lambert.
3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * William Jolitz.
8 *

--- 24 unchanged lines hidden (view full) ---

33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
38 */
39
40#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1992 Terrence R. Lambert.
3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * William Jolitz.
8 *

--- 24 unchanged lines hidden (view full) ---

33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
38 */
39
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD: stable/11/sys/i386/i386/machdep.c 338691 2018-09-14 23:21:52Z jhb $");
41__FBSDID("$FreeBSD: stable/11/sys/i386/i386/machdep.c 341491 2018-12-04 19:07:10Z markj $");
42
43#include "opt_apic.h"
44#include "opt_atpic.h"
45#include "opt_compat.h"
46#include "opt_cpu.h"
47#include "opt_ddb.h"
48#include "opt_inet.h"
49#include "opt_isa.h"

--- 2899 unchanged lines hidden (view full) ---

2949 pcb = td->td_pcb;
2950 regs->r_gs = pcb->pcb_gs;
2951 return (fill_frame_regs(tp, regs));
2952}
2953
2954int
2955fill_frame_regs(struct trapframe *tp, struct reg *regs)
2956{
42
43#include "opt_apic.h"
44#include "opt_atpic.h"
45#include "opt_compat.h"
46#include "opt_cpu.h"
47#include "opt_ddb.h"
48#include "opt_inet.h"
49#include "opt_isa.h"

--- 2899 unchanged lines hidden (view full) ---

2949 pcb = td->td_pcb;
2950 regs->r_gs = pcb->pcb_gs;
2951 return (fill_frame_regs(tp, regs));
2952}
2953
2954int
2955fill_frame_regs(struct trapframe *tp, struct reg *regs)
2956{
2957
2957 regs->r_fs = tp->tf_fs;
2958 regs->r_es = tp->tf_es;
2959 regs->r_ds = tp->tf_ds;
2960 regs->r_edi = tp->tf_edi;
2961 regs->r_esi = tp->tf_esi;
2962 regs->r_ebp = tp->tf_ebp;
2963 regs->r_ebx = tp->tf_ebx;
2964 regs->r_edx = tp->tf_edx;
2965 regs->r_ecx = tp->tf_ecx;
2966 regs->r_eax = tp->tf_eax;
2967 regs->r_eip = tp->tf_eip;
2968 regs->r_cs = tp->tf_cs;
2969 regs->r_eflags = tp->tf_eflags;
2970 regs->r_esp = tp->tf_esp;
2971 regs->r_ss = tp->tf_ss;
2958 regs->r_fs = tp->tf_fs;
2959 regs->r_es = tp->tf_es;
2960 regs->r_ds = tp->tf_ds;
2961 regs->r_edi = tp->tf_edi;
2962 regs->r_esi = tp->tf_esi;
2963 regs->r_ebp = tp->tf_ebp;
2964 regs->r_ebx = tp->tf_ebx;
2965 regs->r_edx = tp->tf_edx;
2966 regs->r_ecx = tp->tf_ecx;
2967 regs->r_eax = tp->tf_eax;
2968 regs->r_eip = tp->tf_eip;
2969 regs->r_cs = tp->tf_cs;
2970 regs->r_eflags = tp->tf_eflags;
2971 regs->r_esp = tp->tf_esp;
2972 regs->r_ss = tp->tf_ss;
2973 regs->r_err = 0;
2974 regs->r_trapno = 0;
2972 return (0);
2973}
2974
2975int
2976set_regs(struct thread *td, struct reg *regs)
2977{
2978 struct pcb *pcb;
2979 struct trapframe *tp;

--- 430 unchanged lines hidden ---
2975 return (0);
2976}
2977
2978int
2979set_regs(struct thread *td, struct reg *regs)
2980{
2981 struct pcb *pcb;
2982 struct trapframe *tp;

--- 430 unchanged lines hidden ---