From 1fbe3090d8382176d1f5075cecd2fa578fe363a4 Mon Sep 17 00:00:00 2001 From: Mikio Hara Date: Sun, 25 Nov 2012 18:46:41 +0900 Subject: [PATCH] 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 --- src/pkg/runtime/sys_freebsd_amd64.s | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.48.1