public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Nick Garnett <nickg@ecoscentric.com>
To: atonizzo@lycos.com
Cc: "Andrew Lunn" <andrew@lunn.ch>, ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] PowerPC hangs on memory read
Date: Fri, 18 Jun 2004 14:50:00 -0000	[thread overview]
Message-ID: <m3zn70rkcz.fsf@xl5.calivar.com> (raw)
In-Reply-To: <KNLHMMBFPPJBFIAA@mailcity.com>

"Anthony Tonizzo" <atonizzo@lycos.com> writes:

> Andrew:
> 
> > You you checked the MMU setup? Maybe you don't have 
> > access to this location?
> 
> I had a hunch it was MMU, but I was under the mistaken
> impression that when enabled, the MMU was mapped to a 1:1
> correspondence between logical and physical address 
> _for_the_whole_extent_of_the_memory_ (this is not as
> wasteful as it sounds since all the addressable space can 
> be covered with large memory blocks resulting in acceptably
> sized translation tables).

The MMU is generally used to control the cache attributes of various
regions of the address space. Usually RAM and ROM are mapped cached,
device registers and PCI space are mapped uncached. It may also be
useful to have an uncached view of RAM too. Depending on the relative
layouts of these blocks, it is not always possible to share MMU
entries between them. Also, by explicitly leaving unused address space
unmapped we can detect invalid accesses more easily.

> 
> Obviously I was wrong, because once I recompiled Ecos
> to disabled the MMU, everything works alright.
> 
> I peeked around, and I found one particularly interesting
> function in the HAL, cyg_hal_map_memory(). Can
> this function be called at any time or is it a setup only
> call? In other words, can you augment the MMU translation
> table at any time?

It is only called at startup. Depending on the MMU facilities
available it either uses the BAT registers, or installs static
mappings in the TLB. These are limited resources, so the HAL writes
needs to work things out fairly carefully.

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

  reply	other threads:[~2004-06-18 14:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-18 13:46 Anthony Tonizzo
2004-06-18 14:50 ` Nick Garnett [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-06-18 15:05 Anthony Tonizzo
2004-06-18 15:30 ` Nick Garnett
2004-06-18  1:58 Anthony Tonizzo
2004-06-18  7:48 ` Andrew Lunn

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=m3zn70rkcz.fsf@xl5.calivar.com \
    --to=nickg@ecoscentric.com \
    --cc=andrew@lunn.ch \
    --cc=atonizzo@lycos.com \
    --cc=ecos-discuss@sources.redhat.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 read-only IMAP folder(s) and NNTP newsgroup(s).