Subject: Re: pointer atomicity
To: Jason Thorpe <thorpej@shagadelic.org>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 01/12/2006 20:19:25
On Wed, Jan 11, 2006 at 03:02:35PM -0800, Jason Thorpe wrote:
> >>
> >>i386 when the data is misaligned and crosses a page boundary and the
> >>second read faults.
> >>
> >
> >Wouldn't failed instruction be repeated after page fault resolved?
> 
> Yes.

But if the transfer were a write doesn't the first half happen before
the fault?  So a reader could get half the old and half the new?

I also believe the 68020 is capable of taking an exception mid-instruction.
(You jolly well better not resume it on a cpu with a different mask level.)

	David

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