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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
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:26 pm

Linus Torvalds wrote:

It's not an instruction-decoding issue at all (that's a 16- vs 32-bit 
issue, which can only be changed by a ljmp).  Apparently the 486DX4 
mis-executes the load to segment register, which is an EU function in 
that context.  (And yes, it's sort-of-documented behaviour in the sense 
that the documentation says "do things this way", but the Intel docs are 
unfortunately full of "do things this way" which don't make sense and 
occasionally are actively harmful, too.)


That's exactly the issue here.  The code without this patch deferred the 
long jump until after the segment loads, this worked on all processors 
except, apparently, the 486DX4.  Hence, move the ljmp up to the earliest 
possible location.

	-hpa
-
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)