All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Bruce_Leonard@selinc.com
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Endian problem when accessing internel regs on 8347
Date: Thu, 17 Jan 2008 16:18:42 -0600	[thread overview]
Message-ID: <478FD442.8060902@freescale.com> (raw)
In-Reply-To: <OF828247BA.CFEBC1F6-ON882573D3.00661B7D-882573D3.00666F62@selinc.com>

Bruce_Leonard@selinc.com wrote:
>>> __asm__ __volatile__("lwz%U1%X1 %0,%1; twi 0,%0,0; isync" : "=r" (ret) 
> : 
>>> "m" (*addr));
>> They allow the compiler to use update and/or index mode for the memory 
>> operand.
> 
> Well that makes sense, U for update and X for index, but I'm not sure 
> they're applicable to this particular instruction and I'm not sure that 
> the memory operand makes sense for PowerPC.

Why not?

> However, before I post 
> anything that makes me look like I've got hoof-n-mouth disease I'm going 
> to do some more digging.  Is the GCC manual the only "official" 
> documentation on this (I've found a couple of web sites but none of them 
> gun.org)

I believe so... other than the sources, of course. :-)

-Scott

  reply	other threads:[~2008-01-17 22:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-17  6:26 Endian problem when accessing internel regs on 8347 Bruce_Leonard
2008-01-17 15:01 ` Ben Warren
2008-01-17 18:01   ` Bruce_Leonard
2008-01-17 18:25     ` Ben Warren
2008-01-17 17:39 ` Scott Wood
2008-01-17 18:38   ` Bruce_Leonard
2008-01-17 22:18     ` Scott Wood [this message]
2008-01-21  7:21       ` Bruce_Leonard
2008-01-21 15:16         ` Ben Warren
2008-01-21 16:40         ` Scott Wood
2008-01-22  5:33           ` Bruce_Leonard

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=478FD442.8060902@freescale.com \
    --to=scottwood@freescale.com \
    --cc=Bruce_Leonard@selinc.com \
    --cc=linuxppc-embedded@ozlabs.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 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.