Deleted Added
full compact
ia32_reg.c (331722) ia32_reg.c (341491)
1/*-
2 * Copyright (c) 2005 Peter Wemm
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2005 Peter Wemm
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: stable/11/sys/amd64/ia32/ia32_reg.c 331722 2018-03-29 02:50:57Z eadler $
26 * $FreeBSD: stable/11/sys/amd64/ia32/ia32_reg.c 341491 2018-12-04 19:07:10Z markj $
27 */
28
29#include <sys/cdefs.h>
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: stable/11/sys/amd64/ia32/ia32_reg.c 331722 2018-03-29 02:50:57Z eadler $");
30__FBSDID("$FreeBSD: stable/11/sys/amd64/ia32/ia32_reg.c 341491 2018-12-04 19:07:10Z markj $");
31
32#include "opt_compat.h"
33
34#include <sys/param.h>
35#include <sys/exec.h>
36#include <sys/fcntl.h>
37#include <sys/imgact.h>
38#include <sys/kernel.h>

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

100 regs->r_edx = tp->tf_rdx;
101 regs->r_ecx = tp->tf_rcx;
102 regs->r_eax = tp->tf_rax;
103 regs->r_eip = tp->tf_rip;
104 regs->r_cs = tp->tf_cs;
105 regs->r_eflags = tp->tf_rflags;
106 regs->r_esp = tp->tf_rsp;
107 regs->r_ss = tp->tf_ss;
31
32#include "opt_compat.h"
33
34#include <sys/param.h>
35#include <sys/exec.h>
36#include <sys/fcntl.h>
37#include <sys/imgact.h>
38#include <sys/kernel.h>

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

100 regs->r_edx = tp->tf_rdx;
101 regs->r_ecx = tp->tf_rcx;
102 regs->r_eax = tp->tf_rax;
103 regs->r_eip = tp->tf_rip;
104 regs->r_cs = tp->tf_cs;
105 regs->r_eflags = tp->tf_rflags;
106 regs->r_esp = tp->tf_rsp;
107 regs->r_ss = tp->tf_ss;
108 regs->r_err = 0;
109 regs->r_trapno = 0;
108 return (0);
109}
110
111int
112set_regs32(struct thread *td, struct reg32 *regs)
113{
114 struct trapframe *tp;
115

--- 124 unchanged lines hidden ---
110 return (0);
111}
112
113int
114set_regs32(struct thread *td, struct reg32 *regs)
115{
116 struct trapframe *tp;
117

--- 124 unchanged lines hidden ---