From: "Kevin D. Kissell" <kevink@mips.com>
To: "han han" <piggie111000@yahoo.com>, <linux-mips@oss.sgi.com>
Subject: Re: MIPS 32bit and 64bit mode
Date: Fri, 26 Oct 2001 21:42:13 +0200 [thread overview]
Message-ID: <03d201c15e56$7c26cac0$0deca8c0@Ulysses> (raw)
In-Reply-To: 20011026185452.88972.qmail@web10804.mail.yahoo.com
> But, how does MIPS 5kc work with 32bit Linux kernel?
If the KX, UX, and PX bits of the CP0 Status register
are all zero, a MIPS5Kc is essentaillly functioning as
a 32-bit CPU. The registers are still 64 bits, and
arithmetic operations will cause all 64 bits of the
destination to be written, but this is outside of the
"event horizon" of the program so long as 64-bit
data and addressing is not enabled. The 64-bit
5Kc can, and does, boot the same Linux kernel as
the 32-bit 4Kc. MIPS64 is a strict superset of MIPS32.
> Do you means there is no difference between 32 bit
> mode and 64 bit mode for MIPS 5kc in kernel mode?
There is no such thing as "32-bit mode" and "64-bit
mode", not really. There are 64-bit data-type instructions
(e.g. "LD", "DADD") and, logically independently, there
is 64-bit addressing for loads and stores - which includes
LW and LB as well as LD. 64-bit data is always enabled
in kernel mode on a MIPS64 part. For 64-bit data in User
mode, and for 64-bit addressing in *either* mode, there are
explicit enables.
Kevin K.
WARNING: multiple messages have this Message-ID (diff)
From: "Kevin D. Kissell" <kevink@mips.com>
To: han han <piggie111000@yahoo.com>, linux-mips@oss.sgi.com
Subject: Re: MIPS 32bit and 64bit mode
Date: Fri, 26 Oct 2001 21:42:13 +0200 [thread overview]
Message-ID: <03d201c15e56$7c26cac0$0deca8c0@Ulysses> (raw)
Message-ID: <20011026194213.R8u_4nS7MFmT6GrLeIrMCp28U9V6io8CnX9Vtkiz8Ws@z> (raw)
In-Reply-To: 20011026185452.88972.qmail@web10804.mail.yahoo.com
> But, how does MIPS 5kc work with 32bit Linux kernel?
If the KX, UX, and PX bits of the CP0 Status register
are all zero, a MIPS5Kc is essentaillly functioning as
a 32-bit CPU. The registers are still 64 bits, and
arithmetic operations will cause all 64 bits of the
destination to be written, but this is outside of the
"event horizon" of the program so long as 64-bit
data and addressing is not enabled. The 64-bit
5Kc can, and does, boot the same Linux kernel as
the 32-bit 4Kc. MIPS64 is a strict superset of MIPS32.
> Do you means there is no difference between 32 bit
> mode and 64 bit mode for MIPS 5kc in kernel mode?
There is no such thing as "32-bit mode" and "64-bit
mode", not really. There are 64-bit data-type instructions
(e.g. "LD", "DADD") and, logically independently, there
is 64-bit addressing for loads and stores - which includes
LW and LB as well as LD. 64-bit data is always enabled
in kernel mode on a MIPS64 part. For 64-bit data in User
mode, and for 64-bit addressing in *either* mode, there are
explicit enables.
Kevin K.
next prev parent reply other threads:[~2001-10-26 19:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-26 17:30 MIPS 32bit and 64bit mode han han
2001-10-26 17:54 ` Kevin D. Kissell
2001-10-26 17:54 ` Kevin D. Kissell
2001-10-26 18:54 ` han han
2001-10-26 19:42 ` Kevin D. Kissell [this message]
2001-10-26 19:42 ` Kevin D. Kissell
2001-10-26 17:54 ` George Gensure
2001-10-26 17:54 ` George Gensure
2001-10-26 18:05 ` Kevin D. Kissell
2001-10-26 18:05 ` Kevin D. Kissell
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='03d201c15e56$7c26cac0$0deca8c0@Ulysses' \
--to=kevink@mips.com \
--cc=linux-mips@oss.sgi.com \
--cc=piggie111000@yahoo.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