Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: cfriesen@nortel.com, linux-mips@linux-mips.org
Subject: Re: quick question on 64-bit values with 32-bit inline assembly
Date: Mon, 28 Jan 2008 21:18:03 +0000	[thread overview]
Message-ID: <20080128211803.GA20434@linux-mips.org> (raw)
In-Reply-To: <20080128.140245.-108809632.imp@bsdimp.com>

On Mon, Jan 28, 2008 at 02:02:45PM -0700, M. Warner Losh wrote:

> : this specific interaction of ABI and processor architecture then it was
> : probably found not to implement such a special read because it is messy
> : in more than one way.
> 
> When 64-bit operations are enabled, you get all 64-bits.  When they
> aren't, only the lower 32-bits of the counter are provided (with sign
> extension).  So when operating in 32-bit mode, saving the upper 32
> bits are not necessary (or even possible).

The architecture manual doesn't make a difference between 32-bit and
64-bit for rdhwr.  My reading is the entire 64-bit would have to be
transfered.

  Ralf

  reply	other threads:[~2008-01-28 21:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-21 18:09 quick question on 64-bit values with 32-bit inline assembly Chris Friesen
2008-01-22 17:57 ` Ralf Baechle
2008-01-22 18:02   ` Geert Uytterhoeven
2008-01-22 18:26     ` Ralf Baechle
2008-01-22 18:55   ` Chris Friesen
2008-01-22 20:07     ` Ralf Baechle
2008-01-28 21:02       ` M. Warner Losh
2008-01-28 21:18         ` Ralf Baechle [this message]
2008-01-28 21:26           ` M. Warner Losh
2008-01-29 10:16             ` Maciej W. Rozycki

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=20080128211803.GA20434@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=cfriesen@nortel.com \
    --cc=imp@bsdimp.com \
    --cc=linux-mips@linux-mips.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