public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: LKML <linux-kernel@vger.kernel.org>, x86@kernel.org
Subject: Re: RFC: running out of x86 boot loader IDs
Date: Fri, 30 Jan 2009 00:16:41 +0100	[thread overview]
Message-ID: <20090129231641.GC29611@elte.hu> (raw)
In-Reply-To: <49823683.6060201@zytor.com>


* H. Peter Anvin <hpa@zytor.com> wrote:

> The 4-bit values used to hold x86 boot loader IDs are near exhaustion.  
> As a result, I'm proposing an extension protocol and will implement it  
> in time for the next merge window unless there are objections.
>
> The proposal will be as follows:
>
> - The boot loader IDs (type_of_loader >> 4) E and F will be reserved:
>
> 	E - extended IDs
> 	F - special uses
>
>   F is consistent with the current use of FF for "unknown".
>
> - If the boot loader ID is E, the current pad1 field at 0x226 is  
> repurposed as an extended loader ID.  The reason to use the pad1 field  
> is that it is present in all headers since version 2.02.  The boot  
> loader ID will simply be: ((extended ID + 0x10) << 4) + (version), where  
> (version) as before is (type_of_loader & 15).  This is the value which  
> will be reported in /proc/sys/kernel/bootloader_type.
>
> The biggest question is probably: is there a need/desire for an extended 
> version field, or is four bits enough for existing bootloader needs?

i think it's prudent to add an extension mechanism, regardless of demand. 
Existing bootloader projects will be content with the IDs they already 
have so they are unlikely to request new ones. Future bootloader projects 
cannot request it because they dont exist yet. So there's no-one to talk 
up.

	Ingo

  reply	other threads:[~2009-01-29 23:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-29 23:06 RFC: running out of x86 boot loader IDs H. Peter Anvin
2009-01-29 23:16 ` Ingo Molnar [this message]
2009-01-29 23:19   ` H. Peter Anvin
2009-01-30  0:33 ` Mikael Pettersson
2009-01-30  0:38   ` H. Peter Anvin
2009-05-08  0:18 ` [tip:x86/kbuild-phys] x86: add extension fields for bootloader type and version tip-bot for H. Peter Anvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090129231641.GC29611@elte.hu \
    --to=mingo@elte.hu \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox