linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bodo Eggert <7eggert@gmx.de>
To: Rene Herman <rene.herman@gmail.com>,
	Dave Jones <davej@redhat.com>, Neil Brown <neilb@suse.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	Kyle McMartin <kyle@canonical.com>,
	linux-kernel@vger.kernel.org, alan@redhat.com,
	bcollins@ubuntu.com, pjones@redhat.com
Subject: Re: how to tell linux (on x86) to ignore 1M or memory
Date: Fri, 20 Apr 2007 23:39:54 +0200	[thread overview]
Message-ID: <E1Hf0pe-0001Ne-J8@be1.lrz> (raw)
In-Reply-To: 8c6EE-4Jj-5@gated-at.bofh.it

Rene Herman <rene.herman@gmail.com> wrote:
> On 04/19/2007 04:18 PM, Bart Trojanowski wrote:

>> I need to preserve some state from the bios before entering protected
>> mode.  For now I want to copy it into some ram accessible by real-mode,
>> say the last megabyte visible in real-mode.
>> 
>> What's the easiest way to have linux ignore the megabyte starting at 15M?
> 
> Note that real-mode can only access the first megabyte (*) and not the first
> 16. 16MB is the 16-bit protected mode (286) limit.
> 
> (*) well, the first 1M + 64K - 16 bytes using segment FFFF assuming A20 is
> enabled and x > 1 in x86...

Interrupt 15h, function 87h allows copying from/to extended memory.
You might like to look into Ralph Brown's interrupt list for more details.

You could also cpio-gzip the data and append it to the initramfs.
-- 
Fun things to slip into your budget
Does that line item say 'Personal Massage System' Oops, it's supposed to be
'Message'. Go ahead and sign the authorization, Boss; I'll correct it later.
(Iike Hell I will)

       reply	other threads:[~2007-04-20 21:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8bFEz-3B4-39@gated-at.bofh.it>
     [not found] ` <8c6EE-4Jj-5@gated-at.bofh.it>
2007-04-20 21:39   ` Bodo Eggert [this message]
     [not found]   ` <8yGrK-4vX-7@gated-at.bofh.it>
     [not found]     ` <8yRnb-4XE-23@gated-at.bofh.it>
2007-06-22 23:00       ` how to tell linux (on x86) to ignore 1M or memory Bodo Eggert
2007-06-22 23:04         ` Rene Herman
2007-04-19 14:18 Bart Trojanowski
2007-04-19 14:30 ` Paolo Ornati
2007-04-20 19:01 ` Rene Herman
2007-06-22  1:46   ` H. Peter Anvin
2007-06-22 13:16     ` Rene Herman

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=E1Hf0pe-0001Ne-J8@be1.lrz \
    --to=7eggert@gmx.de \
    --cc=akpm@linux-foundation.org \
    --cc=alan@redhat.com \
    --cc=bcollins@ubuntu.com \
    --cc=davej@redhat.com \
    --cc=kyle@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neilb@suse.de \
    --cc=pjones@redhat.com \
    --cc=rene.herman@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).