Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc4 released

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nick Piggin <nickpiggin@...>
Cc: <jmerkey@...>, Stefan Richter <stefanr@...>, <paulmck@...>, Peter Zijlstra <peterz@...>, <linux-kernel@...>, Linus Torvalds <torvalds@...>, David Howells <dhowells@...>
Date: Thursday, August 21, 2008 - 5:06 pm

Nick Piggin wrote:

No, that's not what "asm volatile" means.  Its *only* meaning is "emit
this, even if it doesn't look like it has side-effects and its results
are not used".  An asm() with no outputs is "volatile" by default, which
makes most of the uses of "asm volatile" in the kernel redundant.  "asm
volatile" also has no effect on the ordering of the asm with respect to
other code; you must use constraints to do that.

An asm with a "memory" clobber is sufficient to make sure that gcc
doesn't cache memory values in registers; perhaps that's what you mean.

    J
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc..., Paul E. McKenney, (Thu Aug 21, 12:43 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc..., Paul E. McKenney, (Thu Aug 21, 12:48 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6...., Stefan Richter, (Thu Aug 21, 10:02 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6...., Stefan Richter, (Thu Aug 21, 11:22 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger , Nick Piggin, (Thu Aug 21, 9:37 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-r..., Jeremy Fitzhardinge, (Thu Aug 21, 5:06 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-r..., Jeremy Fitzhardinge, (Thu Aug 21, 5:21 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc..., Paul E. McKenney, (Thu Aug 21, 10:30 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc..., Paul E. McKenney, (Thu Aug 21, 10:53 am)