• Akshat Kumar's avatar
    runtime: fix floating point exception on Plan 9 · 7056ec6b
    Akshat Kumar authored
    Change 5660047 moved an FLDCW instruction
    that disables invalid operand traps into
    runtime·asminit, which is called from
    runtime·mstart. Thus, runtime·check is being
    called prior to setting the appropriate control bits,
    which on any QNaN comparison will cause Plan 9
    to take an invalid operand trap. This change loads
    the control bits (for Plan 9) prior to runtime·check.
    Ideally, this should be done before the QNaN checks
    on any system, but possibly other kernels simply
    don't ever trap on invalid operands.
    
    R=golang-dev, rminnich
    CC=golang-dev, john, rsc
    https://golang.org/cl/5939045
    7056ec6b
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...