Commit 1fbe3090 authored by Mikio Hara's avatar Mikio Hara

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
parent 74fcf82d
...@@ -190,8 +190,7 @@ TEXT runtime·madvise(SB),7,$0 ...@@ -190,8 +190,7 @@ TEXT runtime·madvise(SB),7,$0
MOVQ 24(SP), DX MOVQ 24(SP), DX
MOVQ $75, AX // madvise MOVQ $75, AX // madvise
SYSCALL SYSCALL
CMPQ AX, $0xfffffffffffff001 JCC 2(PC)
JLS 2(PC)
MOVL $0xf1, 0xf1 // crash MOVL $0xf1, 0xf1 // crash
RET RET
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment