Date: Wed, 23 Feb 2000 09:06:40 -0800 (PST) From: John Polstra <jdp@polstra.com> To: dfr@nlsystems.com Cc: alpha@freebsd.org Subject: Re: pcb_onfault bug on alpha? Message-ID: <200002231706.JAA38337@vashon.polstra.com> In-Reply-To: <Pine.BSF.4.21.0002230914350.77743-100000@salmon.nlsystems.com> References: <Pine.BSF.4.21.0002230914350.77743-100000@salmon.nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.BSF.4.21.0002230914350.77743-100000@salmon.nlsystems.com>,
Doug Rabson <dfr@nlsystems.com> wrote:
> On Tue, 22 Feb 2000, John Polstra wrote:
>
> > Why doesn't copyerr reset "pcb_onfault" to 0? I think it should.
>
> Yes it should reset pcb_onfault. Scary.
"Scary" sums up my feelings about it too. :-) Does this look right
as a fix? If so, I'll try to set up a test case and ask Jordan for
approval to commit it.
LEAF(copyerr, 0)
LDGP(pv)
ldq ra, (16-8)(sp) /* restore ra. */
lda sp, 16(sp) /* kill stack frame. */
ldq t0, curproc
ldq t0, P_ADDR(t0)
stq zero, U_PCB_ONFAULT(t0) /* reset fault handler. */
ldiq v0, EFAULT /* return EFAULT. */
RET
END(copyerr)
John
--
John Polstra jdp@polstra.com
John D. Polstra & Co., Inc. Seattle, Washington USA
"Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002231706.JAA38337>
