Klaus Demo nginx / f59ae65
use "rep; nop" instead of "pause" on Solaris/amd64 Igor Sysoev 12 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3030
3131
3232 / ngx_cpu_pause()
33 /
34 / the "rep; nop" is used instead of "pause" to avoid the "[ PAUSE ]" hardware
35 / capability added by linker because Solaris/amd64 does not know about it:
36 /
37 / ld.so.1: nginx: fatal: hardware capability unsupported: 0x2000 [ PAUSE ]
3338
3439 .inline ngx_cpu_pause,0
35 pause
40 rep; nop
3641 .end