From: Ralf Baechle <ralf@oss.sgi.com>
To: Scott A McConnell <samcconn@cotw.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: set_cp0_status (mipsregs.h)
Date: Sat, 7 Apr 2001 04:59:16 +0200 [thread overview]
Message-ID: <20010407045916.B26195@bacchus.dhis.org> (raw)
In-Reply-To: <3ACE0BA3.98823D4D@cotw.com>; from samcconn@cotw.com on Fri, Apr 06, 2001 at 11:32:03AM -0700
On Fri, Apr 06, 2001 at 11:32:03AM -0700, Scott A McConnell wrote:
> Which is correct?
> 1 or 2 parameters ?
> The first comes from a 2.4.0 kernel and the second from a 2.4.2
> extracted from cvs a few days ago.
1 Parameter; I changed the functions since about half the calls in the
kernel code did show that whoever wrote the code didn't understand
what the function is supposed to do.
- set_cp0_status(bits)
Set all the bits described by the bitmask bits in the status register.
- clear_cp0_status(bits)
Clear all the bits set in the bitmask argument bits in the status register.
- change_cp0_status(change, set)
Set all bits which are set in the bitmask change to the value given by
the bitmask set; all other bits stay unchanged. This is the same as
the old set_cp0_status function.
Most people want to use {set,clear}_cp0_status().
Ralf
prev parent reply other threads:[~2001-04-07 2:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-06 18:32 set_cp0_status (mipsregs.h) Scott A McConnell
2001-04-07 2:59 ` Ralf Baechle [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=20010407045916.B26195@bacchus.dhis.org \
--to=ralf@oss.sgi.com \
--cc=linux-mips@oss.sgi.com \
--cc=samcconn@cotw.com \
/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