lkml.org 
[lkml]   [2008]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC patch 23/27] Immediate Values - Powerpc Optimization NMI MCE support
* Paul Mackerras (paulus@samba.org) wrote:
> Mathieu Desnoyers writes:
>
> > Use an atomic update for immediate values.
>
> What is meant by an "atomic" update in this context? AFAICS you are
> using memcpy, which is not in any way guaranteed to be atomic.
>
> Paul.

I expect memcpy to perform the copy in one memory access, given I put a

.align 2

before the 2 bytes instruction. It makes sure the instruction modified
fits in a single, aligned, memory write.

Or maybe am I expecting too much from memcpy ?

Mathieu

--
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68


\
 
 \ /
  Last update: 2008-04-17 01:37    [W:0.173 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site