diff options
Diffstat (limited to 'src/os/unix/ngx_gcc_atomic_x86.h')
-rw-r--r-- | src/os/unix/ngx_gcc_atomic_x86.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os/unix/ngx_gcc_atomic_x86.h b/src/os/unix/ngx_gcc_atomic_x86.h index 8e3480d71..1e1582580 100644 --- a/src/os/unix/ngx_gcc_atomic_x86.h +++ b/src/os/unix/ngx_gcc_atomic_x86.h @@ -118,3 +118,6 @@ ngx_atomic_fetch_add(ngx_atomic_t *value, ngx_atomic_int_t add) */ #define ngx_memory_barrier() __asm__ volatile ("" ::: "memory") + +/* old as does not support "pause" opcode */ +#define ngx_cpu_pause() __asm__ (".byte 0xf3, 0x90") |