]> Cypherpunks repositories - gostls13.git/commit
runtime: fix error check in freebsd/386 i386_set_ldt
authorRuss Cox <rsc@golang.org>
Sat, 31 May 2014 13:35:37 +0000 (09:35 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 31 May 2014 13:35:37 +0000 (09:35 -0400)
commit19c8f67e25dc25abdca34b1ebbfa6ed8439a7071
treea08f024f283f1213503a7d6ec6492200ea67a512
parenta238973949287d6d00a5b014135032dd4e0012fb
runtime: fix error check in freebsd/386 i386_set_ldt

Update #2675

The code here was using the error check for Linux/386,
not the one for FreeBSD/386. Most of the time it worked.

Thanks to Neel Natu (FreeBSD developer) for finding this.

The s/JCC/JAE/ a few lines later is a no-op but makes the
test match the rest of the file. Why we write JAE instead of JCC
I don't know, but the two are equivalent and the file might
as well be consistent.

LGTM=bradfitz, minux
R=golang-codereviews, bradfitz, minux
CC=golang-codereviews
https://golang.org/cl/99680044
src/pkg/runtime/sys_freebsd_386.s