From: Richard Henderson <rth@twiddle.net>
To: axp-list@redhat.com
Cc: Daniel Paul Potts <danielp@cse.unsw.edu.au>
Subject: Re: patch_v3: emulating missing instructions on Alpha
Date: Sat, 23 Oct 1999 13:55:44 -0700 [thread overview]
Message-ID: <19991023135544.B15599@twiddle.net> (raw)
In-Reply-To: <Pine.OSF.3.95.991022015853.2383C-200000@ganter.disy.cse.unsw.EDU.AU>; from Luke Deller on Fri, Oct 22, 1999 at 02:23:22AM +1000
On Fri, Oct 22, 1999 at 02:23:22AM +1000, Luke Deller wrote:
> + srl $0,LOG2_TASKSIZE,$5 /* if addr is not in userland, */
> + cmovne $5,$31,$0 /* then force a segfault by putting addr=0 */
> + ldq_u $3,0($0)
> + ldq_u $5,1($0)
This is not sufficient to be safe. Examine the extended
measures taken by the uaccess.h code.
I know you spent a lot of time writing this in assembly,
but I'd feel more comfortable if this were in C hanging
out with the existing opDEC code in do_entIF. There won't
be _that_ much of a speed hit doing things that way. You
get to resuse much of the entArith_User code.
DU has a defined interface through setsysinfo to turn this stuff
on and off -- use that and you don't have to conditionally
compile the code. If you don't have access to the appropriate
DU headers, I can dig them up at work later.
r~
next prev parent reply other threads:[~1999-10-23 20:55 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-18 14:46 patch_v2: (on Alpha) emulating missing instructions Robert Harley
1999-10-18 15:31 ` Phil Carmody
1999-10-23 20:39 ` Richard Henderson
1999-10-21 16:23 ` patch_v3: emulating missing instructions on Alpha Luke Deller
1999-10-23 20:55 ` Richard Henderson [this message]
1999-10-24 0:28 ` Daniel Potts
1999-10-25 1:22 ` Luke Deller
1999-10-28 23:34 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1999-01-13 14:10 Alpha 21264 Andy Almond
1999-01-13 16:36 ` Jeff Sturm
1999-01-14 6:50 ` Richard Henderson
1999-01-12 3:55 rpcc Christoph Dworzak
1999-01-12 3:20 ` rpcc Peter Petrakis
1999-01-12 4:59 ` rpcc Richard Henderson
[not found] ` <rth@twiddle.net>
1999-01-12 16:59 ` rpcc Christoph Dworzak
1999-01-12 19:27 ` rpcc Richard Henderson
1999-01-12 21:06 ` rpcc Wes Bauske
1999-01-13 2:16 ` rpcc Richard Henderson
1999-01-14 16:17 ` Alpha 21264 Christoph Dworzak
1999-01-14 15:46 ` Greg Lindahl
1999-01-14 17:27 ` Richard Henderson
1999-10-24 15:04 ` patch_v2: (on Alpha) emulating missing instructions Christoph Dworzak
1999-10-25 9:47 ` Phil Carmody
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox