public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86 Boot enhancements, boot protocol 2.04 7/9
Date: Fri, 05 Apr 2002 14:04:37 -0800	[thread overview]
Message-ID: <3CAE1F75.2010803@zytor.com> (raw)
In-Reply-To: <m1ofh0spik.fsf@frodo.biederman.org>	<a8flgc$ms2$1@cesium.transmeta.com>	<m1lmc3qtaz.fsf@frodo.biederman.org> <3CAC9BD4.5050500@zytor.com>	<m1hemrqo9b.fsf@frodo.biederman.org> <3CACA74A.1000004@zytor.com> <m1zo0homsv.fsf@frodo.biederman.org>

Eric W. Biederman wrote:
> 
>>Agreed.  Note that so far putting the real mode code *above* 0x90000 is
>>completely untested.  It *should* work with boot protocol 2.02 support; it
>>almost certainly *does not* work with earlier boot protocols (due to the "move
>>it back to 0x90000" braindamage.)
> 
> Having misc.c move the real mode code and the command line above
> 0x90000 avoids this issue.  I relocate the command line so
> cmd_line_ptr must be written.  This looses track of exactly which
> protocol version the bootloader was using, but it doesn't matter as
> all the kernel cares about is being able to find it's command line,
> and the command line can still be found.  For code coming in the new
> 32bit entry point we are above protocol version 2.02 when the problem
> was fixed.
> 
> I have now solved the space/reliability tradeoff with belt and suspenders.
> 
> I have modified misc.c to do an inplace decompression.  This means I
> use approximately 78KB of memory below 1MB and 8 bytes more than the
> decompressesed kernel above 1MB.  And if I have to except for the 5KB
> of real mode code I can put everything above 1MB.  The 78KB is 5KB
> real mode code 10KB decompressor code 61KB bss. 
> 
> The change is especially nice because now in my worst case of only
> using 5KB real mode data, I do better than the best case with previous
> kernels (assuming it isn't a zImage).  And if I ever get the bootmem
> bootmap fixed I can put initrds down at 2.6MB and not have to worry
> about them getting stomped :)
> 

Nice.


      reply	other threads:[~2002-04-05 22:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-03 16:41 [PATCH] x86 Boot enhancements, boot protocol 2.04 7/9 Eric W. Biederman
2002-04-03 19:15 ` Tom Rini
2002-04-04  3:23   ` Eric W. Biederman
2002-04-04 14:10     ` Tom Rini
2002-04-04 15:38       ` Eric W. Biederman
2002-04-03 19:34 ` H. Peter Anvin
2002-04-04 17:15   ` Eric W. Biederman
2002-04-04 18:30     ` H. Peter Anvin
2002-04-04 19:04       ` Eric W. Biederman
2002-04-04 19:19         ` H. Peter Anvin
2002-04-04 19:32           ` Eric W. Biederman
2002-04-05 21:30           ` Eric W. Biederman
2002-04-05 22:04             ` H. Peter Anvin [this message]

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=3CAE1F75.2010803@zytor.com \
    --to=hpa@zytor.com \
    --cc=ebiederm@xmission.com \
    --cc=linux-kernel@vger.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