linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hua Ji <hji@netscreen.com>
To: linuxppc-user@lists.linuxppc.org,
	linuxppc-embedded@lists.linuxppc.org, linux-mm@kvack.org
Subject: mtsr and mfsr?
Date: Thu, 7 Jun 2001 10:16:25 -0700	[thread overview]
Message-ID: <A33AEFDC2EC0D411851900D0B73EBEF766E100@NAPA> (raw)

Folks,

Need help, please. Thanks in advance.

I am working on a board with MPC 750 for an internal products development.

I currently can no problem set up the BATs and enable MMU for memory
management. 

However, when I set up the segment registers, I am confused and stuck here.

I was trying to clear and write some values into those 15 sr registers by
using **mtsr**.

But looks like it doesn't work. The testing I did looks like follows:

-------------
#define RESET 0 
li %r3, RESET;

sync
isync
mtsr sr0, %r3
isync
sync

mfsr %r3, sr0
bl uart_print
...
-------------

The console print-out shows that I didn't write into srs with the zero
value, except
sr1 and sr5. All the rest sr(s) value is still not back to zero.

Did I miss something?

Thanks,

Mike



 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

             reply	other threads:[~2001-06-07 17:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-07 17:16 Hua Ji [this message]
2001-06-08 16:39 ` Tom Roberts

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=A33AEFDC2EC0D411851900D0B73EBEF766E100@NAPA \
    --to=hji@netscreen.com \
    --cc=linux-mm@kvack.org \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=linuxppc-user@lists.linuxppc.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