Merge branch 'asoc-4.22' into asoc-5.0
[linux-2.6-block.git] / arch / powerpc / include / asm / asm-405.h
CommitLineData
36a7eeaf
CL
1#ifndef _ASM_POWERPC_ASM_405_H
2#define _ASM_POWERPC_ASM_405_H
3
4#include <asm/asm-const.h>
5
6#ifdef __KERNEL__
7#ifdef CONFIG_IBM405_ERR77
8/* Erratum #77 on the 405 means we need a sync or dcbt before every
9 * stwcx. The old ATOMIC_SYNC_FIX covered some but not all of this.
10 */
11#define PPC405_ERR77(ra,rb) stringify_in_c(dcbt ra, rb;)
12#define PPC405_ERR77_SYNC stringify_in_c(sync;)
13#else
14#define PPC405_ERR77(ra,rb)
15#define PPC405_ERR77_SYNC
16#endif
17#endif
18
19#endif /* _ASM_POWERPC_ASM_405_H */