mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Herbert Pötzl" <herbert@13thfloor.at>
To: Paolo Ornati <javaman@katamail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [OT] Documentation for PC Architecture
Date: Tue, 19 Aug 2003 00:54:22 +0200	[thread overview]
Message-ID: <20030818225422.GA23927@www.13thfloor.at> (raw)
In-Reply-To: <200308182244.01727.javaman@katamail.com>

On Mon, Aug 18, 2003 at 11:11:53PM +0200, Paolo Ornati wrote:
> >
> > > Curiosity: since the memory addresses from 640KB to 1MB are reserved for
> > > memory mapped I/O (video memory) and BIOS ROM... the corrispondent range
> > > in
> >
> > uh oh ...
> >
> > > the REAL MEMORY isn't usable and so we lost 384KB of memory. Is this
> > > right?
> >
> > for DOS, withouth upper memory manager yes ;)
> 
> I'm talking about an OS in protected mode... in any case how 
> can I access to this memory region if it's mapped for other things?

this is usually done via the MMU which can do miracolous
things to memory and addresses ...

> I've done some tests with a simple kernel which I wrote: all that region 
> (except video memory at 0xb8000) results "read only"...

because it is usually designated as rom area, which naturally
is read only ... 

> So I THINK YOU mean: "you can use more than 640KB in real mode using 
> a memory manager that "remap" 0xC0000 (for example) to 0x100000 or 
> something like it"

basically a memory manager (depending on the processors 
capabilities) does either use memory mapping or simple
memory exchanging between designated regions and above
1M+64k memory ...

given an apropriate address mapping (via mmu) you should
be able to access the entire memory (not just the first
megabyte) without disturbing any memory mapped hardware ...

how could this be possible? simple there are 32 address
lines on a full 386 and above, which gives you 4GB of
physical memory addresses, now the memory mapped hardware
(pci,agp, but also isa) is only activated if the address
lies within a defined range. memory can be designated to
a different range, like (ep)roms ...

for example the Intel 386EX allows to define signals for
each configured memory range (chip selects) to enable or
disable the devices (memory) on demand, other systems
use some chipset/onboard logic to do this ...

> Right?
> 
> bye,
> 	Paolo
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

  reply	other threads:[~2003-08-18 22:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-18  9:27 Paolo Ornati
2003-08-18 18:55 ` Herbert Pötzl
2003-08-18 21:11   ` Paolo Ornati
2003-08-18 22:54     ` Herbert Pötzl [this message]
2003-08-19  1:02       ` Jamie Lokier
2003-08-18 16:34         ` Nagendra Singh Tomar
2003-08-19 16:30           ` Jamie Lokier
2003-08-19  8:01         ` Paolo Ornati
2003-08-19 15:23         ` Krzysztof Halasa
2003-08-19  0:53     ` Jamie Lokier
2003-08-18 10:14 John Bradford
2003-08-18 11:24 ` Paolo Ornati
2003-08-19  7:37 John Bradford
2003-08-19 11:48 ` Maciej W. Rozycki

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=20030818225422.GA23927@www.13thfloor.at \
    --to=herbert@13thfloor.at \
    --cc=javaman@katamail.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

all inboxes | Powered by JetHome®