Linus Torvalds wrote: > > On Tue, 8 May 2001, Alan Cox wrote: > > > > I dont see where the alternative patch ensures the user didnt flip the > > direction flag for one > > Yeah. > > We might as well just make it "eflags & IF", none of the other flags > should matter (or we explicitly want them cleared). > > Linus Here is an updated patch. After reading over the Intel docs, and some testing on my Athlon, I found that %cr2 is not set on alignment check faults. I replaced it with the address of the faulting instruction. It may work on an Intel but is undocumented. The eip makes more sense anyways. -- Brian Gerst