From: Rene Herman <rene.herman@gmail.com>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Bart Trojanowski <bart@jukie.net>, linux-kernel@vger.kernel.org
Subject: Re: how to tell linux (on x86) to ignore 1M or memory
Date: Fri, 22 Jun 2007 15:16:09 +0200 [thread overview]
Message-ID: <467BCB99.8030003@gmail.com> (raw)
In-Reply-To: <467B29DA.9040309@zytor.com>
On 06/22/2007 03:46 AM, H. Peter Anvin wrote:
> Rene Herman 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.
>>
>
> No, 16-bit protected mode (on 386+) is not limited to 16 MB.
That all depends on one's definition of 16-bit protected mode. The "(286)"
after mine meant I was talking about the definition in which descriptors
have a 24-bit base (and 16-bit limit) field -- ie, real 286 and arguably,
"real 16-bit protected mode".
Yes, I guess another valid definition is "code with a 16-bit address and
operand size default" on a 386+ and sure, that's just flipping a bit away.
In the context of Linux I agree it's also a sensible definition, so, well,
whatever. The point was that real mode could only access the first 1M, not
the first 16... :-)
Rene.
next prev parent reply other threads:[~2007-06-22 13:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-19 14:18 how to tell linux (on x86) to ignore 1M or memory 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 [this message]
[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
[not found] ` <8yGrK-4vX-7@gated-at.bofh.it>
[not found] ` <8yRnb-4XE-23@gated-at.bofh.it>
2007-06-22 23:00 ` Bodo Eggert
2007-06-22 23:04 ` 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=467BCB99.8030003@gmail.com \
--to=rene.herman@gmail.com \
--cc=bart@jukie.net \
--cc=hpa@zytor.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;
as well as URLs for NNTP newsgroup(s).