The last fix in trap.c missed R2.

And correct the size of the fault buffer while being here.
This commit is contained in:
ws 1998-11-22 21:21:32 +00:00
parent 32dd1a1d5a
commit 82fe9b4f90
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcb.h,v 1.1 1996/09/30 16:34:29 ws Exp $ */
/* $NetBSD: pcb.h,v 1.2 1998/11/22 21:21:32 ws Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -33,7 +33,7 @@
#ifndef _MACHINE_PCB_H_
#define _MACHINE_PCB_H_
typedef int faultbuf[24];
typedef int faultbuf[23];
struct pcb {
struct pmap *pcb_pm; /* pmap of our vmspace */

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.11 1998/11/21 20:18:47 tsubai Exp $ */
/* $NetBSD: trap.c,v 1.12 1998/11/22 21:21:32 ws Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -116,6 +116,7 @@ trap(frame)
if (fb = p->p_addr->u_pcb.pcb_onfault) {
frame->srr0 = (*fb)[0];
frame->fixreg[1] = (*fb)[1];
frame->fixreg[2] = (*fb)[2];
frame->cr = (*fb)[3];
bcopy(&(*fb)[4], &frame->fixreg[13],
19 * sizeof(register_t));