diff options
Diffstat (limited to 'include/asm-powerpc/system.h')
| -rw-r--r-- | include/asm-powerpc/system.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-powerpc/system.h b/include/asm-powerpc/system.h index 7307aa775671..4c9f5229e833 100644 --- a/include/asm-powerpc/system.h +++ b/include/asm-powerpc/system.h | |||
| @@ -53,6 +53,15 @@ | |||
| 53 | #define smp_read_barrier_depends() do { } while(0) | 53 | #define smp_read_barrier_depends() do { } while(0) |
| 54 | #endif /* CONFIG_SMP */ | 54 | #endif /* CONFIG_SMP */ |
| 55 | 55 | ||
| 56 | /* | ||
| 57 | * This is a barrier which prevents following instructions from being | ||
| 58 | * started until the value of the argument x is known. For example, if | ||
| 59 | * x is a variable loaded from memory, this prevents following | ||
| 60 | * instructions from being executed until the load has been performed. | ||
| 61 | */ | ||
| 62 | #define data_barrier(x) \ | ||
| 63 | asm volatile("twi 0,%0,0; isync" : : "r" (x) : "memory"); | ||
| 64 | |||
| 56 | struct task_struct; | 65 | struct task_struct; |
| 57 | struct pt_regs; | 66 | struct pt_regs; |
| 58 | 67 | ||
