Subject: Re: halving context switch time
To: <>
From: David Laight <david@l8s.co.uk>
List: port-i386
Date: 09/02/2002 10:00:03
On Mon, Sep 02, 2002 at 10:30:06AM +0200, der Mouse wrote:
> > I think the only call to cpu_switch is from mi_switch, as such its
> > current return value (the proc pointer) is never actually used.
> 
> Then why not just redefine its return value in toto?
> 
> > This means that the botton 2 bits of the return value are currently
> > always zero.
> 
> But do you want to assume something like that about pointers, in MI
> code?  I wouldn't.  (Cf the NetBSD/pdp10 effort - I don't know what
> their pointer format looks like, but it wouldn't surprise me at all if
> it broke assumptions like your "any valid struct proc *'s low two bits
> are zero".  Word-addressed machines are like that.)

The idea was that you would redefine the return value, but that
most of the ports wouldn't need to be changed immediately
because binary compatibility had been maintained.

	David

-- 
David Laight: david@l8s.co.uk