Re: [GIT PULL] x86 setup: correct booting on 486 (revised)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eric W. Biederman <ebiederm@...>
Cc: Jeremy Fitzhardinge <jeremy@...>, Linus Torvalds <torvalds@...>, Linux Kernel Mailing List <linux-kernel@...>, Thomas Gleixner <tglx@...>, Ingo Molnar <mingo@...>, Mikael Petterson <mikpe@...>
Date: Tuesday, November 6, 2007 - 1:57 pm

Eric W. Biederman wrote:

That's not the only complication.  The thing that concern me more is 
boot loaders using the jump as a length indicator, and there is really 
very little chance to test that out safely, except perhaps by breaking 
it immediately (by adding a 16-byte jump at the end; that way we provide 
a minimum of overlap for boot loader authors.)

That being said, I don't see any such field (bootsect_kludge could be 
recycled, arguably, and pad2 is three bytes which is enough for a 16-bit 
jump.)

At the moment, though, that would only push the maximum from 0x281 to 
0x290, then we run into the next field in struct boot_params.  Although 
this field can also be relocated over time, it once again shows that 
breaking this particular limit is nontrivial, and that we're better off 
trying to avoid pushing it.

However, with a little discipline I think we can make 0x281 last us for 
the usable lifetime of this format.  In the 10 years since the 2.00 
format was created, we have only added 36 bytes of header, and we have 
57 bytes left (plus 5 bytes of pad and 6 bytes of recyclable field.) 
When we get closer to full, if we haven't already created a mechanism 
making field additions obsolete I think we would be better off creating 
a pointer to a secondary header than trying to break the limitations 
involved in the current header format.

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

Messages in current thread:
[GIT PULL] x86 setup: correct booting on 486 (revised), H. Peter Anvin, (Sun Nov 4, 10:16 pm)
[GIT PULL] x86 setup: correct booting on 486 (revised), H. Peter Anvin, (Sun Nov 4, 11:58 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), Eric W. Biederman, (Mon Nov 5, 4:21 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), Eric W. Biederman, (Mon Nov 5, 5:14 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), Eric W. Biederman, (Mon Nov 5, 5:58 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), Jeremy Fitzhardinge, (Mon Nov 5, 4:51 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), Jeremy Fitzhardinge, (Mon Nov 5, 8:59 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), Jeremy Fitzhardinge, (Mon Nov 5, 9:18 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), Jeremy Fitzhardinge, (Tue Nov 6, 12:17 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), H. Peter Anvin, (Tue Nov 6, 12:27 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), Eric W. Biederman, (Tue Nov 6, 1:04 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), Jeremy Fitzhardinge, (Tue Nov 6, 12:55 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), Eric W. Biederman, (Tue Nov 6, 1:09 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), H. Peter Anvin, (Tue Nov 6, 1:57 pm)
Re: [GIT PULL] x86 setup: correct booting on 486 (revised), Eric W. Biederman, (Tue Nov 6, 2:27 pm)