1
0
mirror of https://github.com/golang/go synced 2024-11-23 10:10:02 -07:00

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
This commit is contained in:
Mikio Hara 2012-11-25 18:46:41 +09:00
parent 74fcf82dd9
commit 1fbe3090d8

View File

@ -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