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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: H. Peter Anvin <hpa@...>
Cc: Linus Torvalds <torvalds@...>, Linux Kernel Mailing List <linux-kernel@...>, Thomas Gleixner <tglx@...>, Ingo Molnar <mingo@...>, Mikael Petterson <mikpe@...>, Jeremy Fitzhardinge <jeremy@...>
Date: Monday, November 5, 2007 - 5:14 pm

"H. Peter Anvin" <hpa@zytor.com> writes:



I'm just saying be liberal in what you accept and conservative in what
you send.

Making the entire process well defined is useful so things don't break
unnecessarily, and the maintainers of the pieces of software that use
the interface know what they can reliably get away with and what is
just luck.

Currently using the 32-bit entry point reliably requires:
%cs to be set.
%esi to be set.
%ebx be set to 0.
%gdt to be set and have:
  0x10 a 32bit 4G code segment with base of 0
  0x18 a 32bit 4G data segment with base of 0

With the latest generation of the boot protocol if KEEP_SEGMENTS
is set then it is only required that the data segments %ds, %es, %fs,
%gs and %ss be initialized to a valid value.

I have no problem with code providing more then what is required
above, and in fact I think it is likely a good thing.

For future expansion of the protocol things will go easiest if
we don't add additional requirements to the list above, as that
is all that I think all current boot loaders provide.

Anyway this is getting off topic.  So far the changes to pmjump.S
look to be going well.

Eric
-
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), Eric W. Biederman, (Tue Nov 6, 2:27 pm)