From: Shinya Kuribayashi <skuribay@pobox.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Is it necessary that uboot(mips) should read status register($12) before setting it
Date: Sat, 01 Oct 2011 12:59:20 +0900 [thread overview]
Message-ID: <4E869018.6080102@pobox.com> (raw)
In-Reply-To: <CALCCDnKL=id2rAtutHq1D5BfO3Pv+0jxhqA_AdpajiFJCEHPDA@mail.gmail.com>
On 09/28/2011 06:09 PM, RdrouterUboot Router wrote:
> 2.Is it right?I can delete this code "mfc0 $10,$12" from uboot.
You can delete that MFC0 instruction in this case and save one word.
Presumably the original code used to update the Status register value
in read-modify-write manner, and at some point someone modified into
current shape.
By the way, since the first MIPS implementation of U-Boot was merged
into the tree (by wdenk), we've been using k0($26) or t0($8) register
as a scratch pad when modifying the Status register, while your example
code uses t2($10). So it would be a custom U-Boot we don't know of.
prev parent reply other threads:[~2011-10-01 3:59 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
2011-09-29 16:15 ` Marek Vasut
2011-10-01 3:59 ` Shinya Kuribayashi [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=4E869018.6080102@pobox.com \
--to=skuribay@pobox.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.