Re: [GIT PULL] x86 setup: correct booting on 486DX4

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: H. Peter Anvin <hpa@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, Thomas Gleixner <tglx@...>, Ingo Molnar <mingo@...>, Mikael Petterson <mikpe@...>, Eric Biederman <ebiederm@...>
Date: Sunday, November 4, 2007 - 7:25 pm

On Sun, 4 Nov 2007, Linus Torvalds wrote:

Hmm. The original Linux code did

	movw    $1, %ax
	lmsw    %ax
	jmp     flush_instr
    flush_instr:

and I think that was straigh out of the documentation. So yeah, I think 
that's the right fix - not a longjmp (which in itself is dangerous: it 
potentially behaves *differently* on different CPU's, since some CPU's may 
do the long jump with pre-protected-mode semantics, while others will do 
it with protected mode already in effect!)

			Linus
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [GIT PULL] x86 setup: correct booting on 486DX4, Linus Torvalds, (Sun Nov 4, 7:17 pm)
Re: [GIT PULL] x86 setup: correct booting on 486DX4, H. Peter Anvin, (Sun Nov 4, 7:26 pm)
Re: [GIT PULL] x86 setup: correct booting on 486DX4, Linus Torvalds, (Sun Nov 4, 7:59 pm)
Re: [GIT PULL] x86 setup: correct booting on 486DX4, H. Peter Anvin, (Sun Nov 4, 8:02 pm)
Re: [GIT PULL] x86 setup: correct booting on 486DX4, Eric W. Biederman, (Sun Nov 4, 8:43 pm)
Re: [GIT PULL] x86 setup: correct booting on 486DX4, Linus Torvalds, (Sun Nov 4, 9:10 pm)
Re: [GIT PULL] x86 setup: correct booting on 486DX4, H. Peter Anvin, (Sun Nov 4, 8:12 pm)
Re: [GIT PULL] x86 setup: correct booting on 486DX4, Jeremy Fitzhardinge, (Sun Nov 4, 7:27 pm)
Re: [GIT PULL] x86 setup: correct booting on 486DX4, Linus Torvalds, (Sun Nov 4, 7:25 pm)
Re: [GIT PULL] x86 setup: correct booting on 486DX4, H. Peter Anvin, (Sun Nov 4, 7:36 pm)