• Benjamin Herrenschmidt's avatar
    powerpc: Add memory clobber to mtspr() · 2fae0a52
    Benjamin Herrenschmidt authored
    Without this clobber, mtspr can be re-ordered by gcc vs. surrounding
    memory accesses. While this might be ok for some cases, it's not in
    others and I'm not confident that all callers get it right (In fact
    I'm sure some of them don't).
    
    So for now, let's make mtspr() itself contain a memory clobber until
    we can audit and fix everything, at which point we can remove it
    if we think it's worth doing so.
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    2fae0a52
reg.h 36.6 KB