Changeset 11110


Ignore:
Timestamp:
Oct 17, 2008, 12:38:37 AM (11 years ago)
Author:
rme
Message:

Port r9057 here. (Don't automatically assume that Darwin generates
bogus FP exceptions.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/x86-spentry32.s

    r11053 r11110  
    41364136        __(clr %fn)
    41374137        __(pxor %fpzero,%fpzero)
    4138         __ifdef([DARWIN])
    4139         /* Darwin's math library seems to cause spurious FP exceptions. */
     4138        __(cmpb $0,C(bogus_fp_exceptions))
     4139        __(je 0f)
    41404140        __(movl %arg_z,rcontext(tcr.ffi_exception))
    4141         __else
    4142         __(stmxcsr rcontext(tcr.ffi_exception))
    4143         __endif
    4144         __(pushl rcontext(tcr.save_eflags))
     4141        __(jmp 1f)
     41420:      __(stmxcsr rcontext(tcr.ffi_exception))
     41431:      __(pushl rcontext(tcr.save_eflags))
    41454144        __(popfl)
    41464145        __(movl rcontext(tcr.save_vsp),%esp)
Note: See TracChangeset for help on using the changeset viewer.