]> git.kaiwu.me - nginx.git/commitdiff
use "rep; nop" instead of "pause" on Solaris/amd64
authorIgor Sysoev <igor@sysoev.ru>
Fri, 26 Mar 2010 13:38:41 +0000 (13:38 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 26 Mar 2010 13:38:41 +0000 (13:38 +0000)
src/os/unix/ngx_sunpro_amd64.il

index c26e6f71724f2ffab3789ff379de20616a97bd8b..c6519574d70767b7d0bfbb68553af0e961a40a16 100644 (file)
 
 
 / 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
-       pause
+       rep; nop
        .end