public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andrey Baboshin <ababoshin@tepkom.ru>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Init sequence for enabling MMU at mpc5xx fails
Date: Tue, 22 Jul 2008 15:29:00 -0000	[thread overview]
Message-ID: <1e6f0d0fa4bbc3ce68b71ffd13453d2c@tepkom.ru> (raw)

Hi, all.

I find following problem.
I enable the MMU in eCos and it executes next code

        # Initialize MMU.
        bl      hal_MMU_init

        # Enable MMU (if desired) so we can safely enable caches.
        lwi     r3,CYG_MSR              # interrupts enabled later
        sync
        mtmsr   r3 (*)
        sync

        # Enable caches
        bl      hal_enable_caches

I have found it fails after (*).
In additional
CYG_MSR = (CYG_MSR_COMMON | IP_BIT | IR_DR_BITS)
CYG_MSR_COMMON = (MSR_FP | MSR_ME | MSR_RI)
IP_BIT = 0
IR_DR_BITS = (MSR_IR | MSR_DR)

Do have anyone some problem?
It works only when I comment mtmsr r3 and followed by it sync.

---
Andrey Baboshin


-- 
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:[~2008-07-22 15:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-22 15:29 Andrey Baboshin [this message]
2008-07-22 15:34 ` Andrey Baboshin
2008-07-22 15:46 ` Gary Thomas

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=1e6f0d0fa4bbc3ce68b71ffd13453d2c@tepkom.ru \
    --to=ababoshin@tepkom.ru \
    --cc=ecos-discuss@ecos.sourceware.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 read-only IMAP folder(s) and NNTP newsgroup(s).