public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Is it necessary that uboot(mips) should read status register($12) before setting it
Date: Thu, 29 Sep 2011 15:04:55 +0200	[thread overview]
Message-ID: <m2zkhno5xk.fsf@ohwell.denx.de> (raw)
In-Reply-To: <CALCCDnKL=id2rAtutHq1D5BfO3Pv+0jxhqA_AdpajiFJCEHPDA@mail.gmail.com> (RdrouterUboot Router's message of "Wed, 28 Sep 2011 17:09:05 +0800")

Hi Bruce,

> MIPS Uboot works OK.Part of the code is as below.

Congratulations.  Although I'm not sure what I'm congratulating on ;)

> And my questions:
> 1.read status register($12) and save value to $10,but don't use the value in
> $10 to do anything.
> Because uboot overwrite $10.
>
> 2.Is it right?I can delete this code "mfc0 $10,$12" from uboot.

I'm sorry, but I don;t know what to make of this. Can you tell us if
this code is from U-Boot and if so, in which file?  Also can't you try
for yourself if U-Boot still works after removing this instruction?

What exactly do you want us to tell you?

Cheers
  Detlev

-- 
If I could ask a  genie to grant me one wish for free software, it would not
be about the  popularity of the GNU Hurd,  or even the popularity of the GNU
system.  I would wish for all software users to have  reedom and value free-
dom.               -- Richard Stallman <E1OiPAB-00016E-2v@fencepost.gnu.org>
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

  reply	other threads:[~2011-09-29 13:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-28  9:09 [U-Boot] Is it necessary that uboot(mips) should read status register($12) before setting it RdrouterUboot Router
2011-09-29 13:04 ` Detlev Zundel [this message]
2011-09-29 16:15 ` Marek Vasut
2011-10-01  3:59 ` Shinya Kuribayashi

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=m2zkhno5xk.fsf@ohwell.denx.de \
    --to=dzu@denx.de \
    --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