mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
use "rep; nop" instead of "pause" on Solaris/amd64
This commit is contained in:
parent
b45498c3de
commit
f59ae65fa4
@ -31,7 +31,12 @@
|
|||||||
|
|
||||||
|
|
||||||
/ ngx_cpu_pause()
|
/ ngx_cpu_pause()
|
||||||
|
/
|
||||||
|
/ the "rep; nop" is used instead of "pause" to avoid the "[ PAUSE ]" hardware
|
||||||
|
/ capability added by linker because Solaris/amd64 does not know about it:
|
||||||
|
/
|
||||||
|
/ ld.so.1: nginx: fatal: hardware capability unsupported: 0x2000 [ PAUSE ]
|
||||||
|
|
||||||
.inline ngx_cpu_pause,0
|
.inline ngx_cpu_pause,0
|
||||||
pause
|
rep; nop
|
||||||
.end
|
.end
|
||||||
|
Loading…
Reference in New Issue
Block a user