All of lore.kernel.org
 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: Wed, 26 Jul 2006 17:04:00 -0500	[thread overview]
Message-ID: <44C7E6D0.20008@freescale.com> (raw)
In-Reply-To: <995B09A8299C2C44B59866F6391D2635018C72@zch01exm21.fsl.freescale.net>

Liu Dave-r63238 wrote:

> The MPC8349EMDS code in wolfgang's git is working well now. No hang.
> Please check your code carefully.

I've tried and I can't figure out what's wrong.  Right now, I have this code in mpc83xx/start.S:

	/* For some reason, address translation does not work on the 8349E-mITX */
#ifndef CONFIG_MPC8349ITX	
	/* enable address translation */
	bl	enable_addr_trans
	sync
#endif

Everything else works fine (I'll be providing a patch for the 8349E-mITX in a week or so).  But if I turn on either address translation (instruction or data, it doesn't matter), then the system crashes.

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

The crash occurs right after the 'mtmsr' instruction.

The only thing I can think of is that I'm using the wrong values for CFG_IBATxx, but I have no idea what they should be.  I copied them from MPC8349EMDS.h.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

      reply	other threads:[~2006-07-26 22:04 UTC|newest]

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

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=44C7E6D0.20008@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.