Deleted Added
full compact
machdep.c (36605) machdep.c (36735)
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 *

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

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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
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 *

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

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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 * $Id: machdep.c,v 1.297 1998/05/28 09:29:57 phk Exp $
38 * $Id: machdep.c,v 1.298 1998/06/03 07:56:59 bde Exp $
39 */
40
41#include "apm.h"
42#include "ether.h"
43#include "npx.h"
44#include "opt_atalk.h"
45#include "opt_bounce.h"
46#include "opt_cpu.h"

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

1609 panic("vm_map_protect failed");
1610 return;
1611}
1612#endif /* defined(I586_CPU) && !NO_F00F_HACK */
1613
1614int
1615ptrace_set_pc(p, addr)
1616 struct proc *p;
39 */
40
41#include "apm.h"
42#include "ether.h"
43#include "npx.h"
44#include "opt_atalk.h"
45#include "opt_bounce.h"
46#include "opt_cpu.h"

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

1609 panic("vm_map_protect failed");
1610 return;
1611}
1612#endif /* defined(I586_CPU) && !NO_F00F_HACK */
1613
1614int
1615ptrace_set_pc(p, addr)
1616 struct proc *p;
1617 unsigned int addr;
1617 unsigned long addr;
1618{
1619 p->p_md.md_regs->tf_eip = addr;
1620 return (0);
1621}
1622
1623int
1624ptrace_single_step(p)
1625 struct proc *p;

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

1648 (vm_offset_t) (gap + sizeof(struct trapframe)))
1649 return 0;
1650 return EPERM;
1651}
1652
1653int ptrace_write_u(p, off, data)
1654 struct proc *p;
1655 vm_offset_t off;
1618{
1619 p->p_md.md_regs->tf_eip = addr;
1620 return (0);
1621}
1622
1623int
1624ptrace_single_step(p)
1625 struct proc *p;

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

1648 (vm_offset_t) (gap + sizeof(struct trapframe)))
1649 return 0;
1650 return EPERM;
1651}
1652
1653int ptrace_write_u(p, off, data)
1654 struct proc *p;
1655 vm_offset_t off;
1656 int data;
1656 long data;
1657{
1658 struct trapframe frame_copy;
1659 vm_offset_t min;
1660 struct trapframe *tp;
1661
1662 /*
1663 * Privileged kernel state is scattered all over the user area.
1664 * Only allow write access to parts of regs and to fpregs.

--- 193 unchanged lines hidden ---
1657{
1658 struct trapframe frame_copy;
1659 vm_offset_t min;
1660 struct trapframe *tp;
1661
1662 /*
1663 * Privileged kernel state is scattered all over the user area.
1664 * Only allow write access to parts of regs and to fpregs.

--- 193 unchanged lines hidden ---