diff options
Diffstat (limited to 'src/runtime/sys_solaris_amd64.s')
-rw-r--r-- | src/runtime/sys_solaris_amd64.s | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/sys_solaris_amd64.s b/src/runtime/sys_solaris_amd64.s index e4315645fe..18098d2f53 100644 --- a/src/runtime/sys_solaris_amd64.s +++ b/src/runtime/sys_solaris_amd64.s @@ -80,6 +80,8 @@ TEXT runtime·asmsysvicall6(SB),NOSPLIT,$0 get_tls(CX) MOVQ g(CX), BX + CMPQ BX, $0 + JEQ skiperrno1 MOVQ g_m(BX), BX MOVQ m_perrno(BX), DX CMPQ DX, $0 @@ -108,6 +110,8 @@ skipargs: get_tls(CX) MOVQ g(CX), BX + CMPQ BX, $0 + JEQ skiperrno2 MOVQ g_m(BX), BX MOVQ m_perrno(BX), AX CMPQ AX, $0 |