Messages in this thread | | | Date | Fri, 11 Dec 2009 21:22:22 +0000 | From | Russell King - ARM Linux <> | Subject | Re: [PATCH 1/2] perf tools: allow building for ARM |
| |
On Fri, Dec 11, 2009 at 12:26:57PM +0100, Mikael Pettersson wrote: > The correct solution is to invoke a kernel-exported CPU-specific helper > function in the ARM kernel helper page. > > I see a __kuser_memory_barrier entry there which maps to smp_dmb.
That is indeed the correct way to do this - otherwise user programs will be tied to particular architecture versions, and either an undefined instruction fault will happen, or worse, the desired effect will not happen.
| |