mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Erik Mouw <J.A.K.Mouw@ITS.TUDelft.NL>
To: Raghava Raju <vraghava_raju@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: __asm__ usage ????
Date: Fri, 10 Aug 2001 19:24:18 -0400	[thread overview]
Message-ID: <20010810192418.M1004@arthur.ubicom.tudelft.nl> (raw)
In-Reply-To: <20010810195004.18859.qmail@web20008.mail.yahoo.com>
In-Reply-To: <20010810195004.18859.qmail@web20008.mail.yahoo.com>; from vraghava_raju@yahoo.com on Fri, Aug 10, 2001 at 12:50:04PM -0700

On Fri, Aug 10, 2001 at 12:50:04PM -0700, Raghava Raju wrote:

>    I want some basic insights into assembly level code
> emmbedded in C language. Following is the code of
> PowerPc ambedded in C languagge:
> 
> unsigned long old,mask, *p;
> 
> 	__asm__ __volatile__(SMP_WMB "\
> 1:	lwarx 	%0,0,%3
> 	andc  	%0,%0,%2
> 	stwcx 	%0,0,%3
> 	bne 	1b"
> 	SMP_MB
> 	: "=&r" (old), "=m" (*p)
> 	: "r" (mask), "r" (p), "m" (*p)
> 	: "cc");
> 
> 	1) what does these things denote: __volatile__,
> SMP_WMB, SMP_MB, "r","=&r","=m",
> "cc" and 1: .

>From http://www.kernelnewbies.org/links/ :

  http://www-106.ibm.com/developerworks/linux/library/l-ia.html
  http://www.uwsg.indiana.edu/hypermail/linux/kernel/9804.2/0953.html


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/

  parent reply	other threads:[~2001-08-10 23:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-10 19:50 Raghava Raju
2001-08-10 22:25 ` george anzinger
2001-08-10 23:24 ` Erik Mouw [this message]
2001-08-11 17:32 ` Daniel Egger
2001-08-11 21:03   ` Raghava Raju
2001-08-13  5:02     ` Albert D. Cahalan

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=20010810192418.M1004@arthur.ubicom.tudelft.nl \
    --to=j.a.k.mouw@its.tudelft.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vraghava_raju@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

all inboxes | Powered by JetHome®