Re: [PATCH] Fix triplefault on x86-64 bootup

Andi Kleen
2007-08-12T12:59:58Z

Alexey Dobriyan <adobriyan@gmail.com> writes:

> On Sun, Aug 12, 2007 at 10:12:52AM +0200, Petr Vandrovec wrote:
> > --- a/arch/x86_64/lib/memcpy.S
> > +++ b/arch/x86_64/lib/memcpy.S
> > @@ -124,6 +124,8 @@ ENDPROC(__memcpy)
> > .quad memcpy
> > .quad 1b
> > .byte X86_FEATURE_REP_GOOD
> > - .byte .Lfinal - memcpy
> > + /* Replace only beginning, memcpy is used to apply alternatives, so it
> > + * is silly to overwrite itself with nops - reboot is only outcome... */
> > + .byte 2b - 1b
> > .byte 2b - 1b
> > .previous
>
> Thanks, this fixes E6400 reboots on bootup here.

Please test with only ab144f5ec64c42218a555ec1dbde6b60cf2982d6
applied (or rather a few patches back in the git history)
I bet that fixes it already.

-Andi