public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Turning on instruction address translation on an 8349 causes processor reset
Date: Tue, 18 Jul 2006 13:54:54 -0500	[thread overview]
Message-ID: <44BD2E7E.2090506@freescale.com> (raw)

I'm working on adding support for a new 8349 board to U-Boot, and the processor resets if I turn on the IR bit in the MSR.  This happens in function enable_addr_trans() in start.S.

enable_addr_trans:
	/* enable address translation */
	mfmsr	r5
	ori	r5, r5, (MSR_IR | MSR_DR)
	mtmsr	r5
	isync
	blr

with this code, when the "mtmsr" instruction is executed, the processor resets (or hangs - I can't tell).  If I change the 4th line to:

	ori	r5, r5, MSR_DR

It works and U-Boot boots to a command prompt.

Since the BATs are configured the same for data and instruction, I presume the mapping is correct, but there's something wrong with turning on instruction address translation.  Anyone have any ideas?

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

             reply	other threads:[~2006-07-18 18:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-18 18:54 Timur Tabi [this message]
2006-07-19  2:46 ` [U-Boot-Users] Turning on instruction address translation on an 8349 causes processor reset Liu Dave-r63238
2006-07-26 22:04   ` Timur Tabi

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=44BD2E7E.2090506@freescale.com \
    --to=timur@freescale.com \
    --cc=u-boot@lists.denx.de \
    /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