Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: "Finney, Steve" <Steve.Finney@SpirentCom.COM>, linux-mips@linux-mips.org
Subject: Re: 64 bit operations w/32 bit kernel
Date: Tue, 30 Sep 2003 20:47:55 +0200	[thread overview]
Message-ID: <20030930184755.GA12599@linux-mips.org> (raw)
In-Reply-To: <Pine.GSO.3.96.1030930195415.11368C-100000@delta.ds2.pg.gda.pl>

On Tue, Sep 30, 2003 at 08:04:42PM +0200, Maciej W. Rozycki wrote:

> > > What would be the downside to enabling 64 bit operations in user space
> > > on a 32 bit kernel (setting the PX bit in the status register?). The
> > > particular issue is that I want to access 64 bit-memory mapped registers,
> > > and I really need to do it as an atomic operation. I tried borrowing
> > > sibyte/64bit.h from the kernel, but I get an illegal instruction on the
> > > double ops.
> > 
> > Common design bug in hardware, imho ...
> 
>  Well, ioremap() can be used to get at these areas (as well as any
> others), whether we call it a bug or not.

What I called a bug is the necessity to access hardware registers with
64-bit loads and stores in some systems as opposed to of 32-bit
instructions - that simply doesn't work from 32-bit universes.

To clarify, it was my understanding of Steve's problem he needs 64-bit
loads and stores, not something in the 64-bit physical address space.
The later problem obviously would get a different answer.

  Ralf

  reply	other threads:[~2003-09-30 18:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-29 17:31 64 bit operations w/32 bit kernel Finney, Steve
2003-09-29 17:31 ` Finney, Steve
2003-09-29 19:01 ` Michael Uhler
2003-09-30 14:49   ` Kip Walker
2003-09-30 16:00 ` Ralf Baechle
2003-09-30 18:04   ` Maciej W. Rozycki
2003-09-30 18:47     ` Ralf Baechle [this message]
2003-10-01  3:58       ` Maciej W. Rozycki
2003-09-30 18:29   ` Michael Uhler
2003-09-30 19:10     ` Maciej W. Rozycki
2003-09-30 19:27       ` Michael Uhler
2003-10-01  4:26         ` Maciej W. Rozycki
2003-10-01 16:24           ` Ralf Baechle
2003-09-30 19:48     ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2003-09-30 19:23 Finney, Steve
2003-09-30 19:23 ` Finney, Steve

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=20030930184755.GA12599@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=Steve.Finney@SpirentCom.COM \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@ds2.pg.gda.pl \
    /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