blob: 7270d3ae7c8e7c553879f750b6d9144742fd0a69 [file] [log] [blame]
Christophe Leroy36a7eea2018-07-05 16:24:55 +00001#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 */