Re: Inline Assembly queries

2009-06-27 Thread kernel mailz
Thanks Ian, For the "memory" clobber I tried with the a function in linux kernel -- /* * Atomic exchange * * Changes the memory location '*ptr' to be val and returns * the previous value stored there. */ static inline unsigned long __xchg_u32(volatile void *p, unsigned long val) { uns

Re: sym scsi driver problem with 2.6.26 or newer debian kernel on p610 (fwd)

2009-06-27 Thread Benjamin Herrenschmidt
On Sat, 2009-06-27 at 19:46 +0200, Laszlo Fekete wrote: > Hello! > > Thank you very much, this patch works me too. > > Maybe this patch will be in the debian kernel someday? The patch isn't actually correct just yet :-) Michael will be posting a proper one next week. It should be possible to req

Re: Trouble "Transferring control to Linux (at address 00000000)"

2009-06-27 Thread Frank Svendsbøe
On Fri, Jun 26, 2009 at 7:12 PM, Mikhail Zaturenskiy wrote: > Hi Scott, > >> This isn't the denx list; > I've noticed :) but I'm still learning about this whole process so I > though I could get some general suggestions. > >> what kernel version is that, and with what >> modifications from mainline

Inline Assembly queries

2009-06-27 Thread kernel mailz
Hello All the gurus, I've been fiddling my luck with gcc 4.3.2 inline assembly on powerpc There are a few queries 1. asm volatile or simply asm produce the same assembly code. Tried with a few examples but didnt find any difference by adding volatile with asm 2. Use of "memory" and clobbered reg

Re: sym scsi driver problem with 2.6.26 or newer debian kernel on p610 (fwd)

2009-06-27 Thread Laszlo Fekete
Hello! Thank you very much, this patch works me too. Maybe this patch will be in the debian kernel someday? Thank you: blackluck Michael Ellerman wrote: > On Wed, 2009-06-24 at 15:56 +1000, Benjamin Herrenschmidt wrote: > >> On Wed, 2009-06-24 at 15:53 +1000, Michael Ellerman wrote: >>

Re: [PATCH 2/2] perf_counter: powerpc: Add callchain support

2009-06-27 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Sat, 2009-06-27 at 15:31 +1000, Paul Mackerras wrote: > > + if (regs) { > > + if (current_is_64bit()) > > + perf_callchain_user_64(regs, entry); > > + else > > + perf_callchain_user_32(regs

Re: [PATCH 2/2] perf_counter: powerpc: Add callchain support

2009-06-27 Thread Peter Zijlstra
On Sat, 2009-06-27 at 15:31 +1000, Paul Mackerras wrote: > + if (regs) { > + if (current_is_64bit()) > + perf_callchain_user_64(regs, entry); > + else > + perf_callchain_user_32(regs, entry); > + } Ingo do we need