From: Mikio Hara Date: Sun, 25 Nov 2012 09:46:41 +0000 (+0900) Subject: runtime: fix madvise for freebsd/amd64 X-Git-Tag: go1.1rc2~1808 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1fbe3090d8382176d1f5075cecd2fa578fe363a4;p=gostls13.git runtime: fix madvise for freebsd/amd64 Make use of carry clear condition instead of low or same. R=minux.ma, jsing, dave CC=golang-dev https://golang.org/cl/6844080 --- diff --git a/src/pkg/runtime/sys_freebsd_amd64.s b/src/pkg/runtime/sys_freebsd_amd64.s index d66aed107c..6c52dfa15e 100644 --- a/src/pkg/runtime/sys_freebsd_amd64.s +++ b/src/pkg/runtime/sys_freebsd_amd64.s @@ -190,8 +190,7 @@ TEXT runtime·madvise(SB),7,$0 MOVQ 24(SP), DX MOVQ $75, AX // madvise SYSCALL - CMPQ AX, $0xfffffffffffff001 - JLS 2(PC) + JCC 2(PC) MOVL $0xf1, 0xf1 // crash RET