Changeset 14597


Ignore:
Timestamp:
Jan 24, 2011, 12:58:14 PM (14 years ago)
Author:
R. Matthew Emerson
Message:

In subprims that call foreign code, save the flags in tcr.unboxed0
instead of using the dedicated slot tcr.save_eflags.

File:
1 edited

Legend:

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

    r13561 r14597  
    10551055        /* preserve state of direction flag */
    10561056        __(pushfl)
    1057         __(popl rcontext(tcr.save_eflags))
     1057        __(popl rcontext(tcr.unboxed0))
    10581058        __(cld)
    10591059        __(emms)
     
    10791079        __(clr %fn)
    10801080        __(pxor %fpzero,%fpzero)
    1081         __(pushl rcontext(tcr.save_eflags))
     1081        __(pushl rcontext(tcr.unboxed0))
    10821082        __(popfl)
    10831083        __(movl rcontext(tcr.save_vsp),%esp)
     
    11111111        /* preserve state of direction flag */
    11121112        __(pushfl)
    1113         __(popl rcontext(tcr.save_eflags))
     1113        __(popl rcontext(tcr.unboxed0))
    11141114        __(cld)
    11151115        __(emms)
     
    11391139        __(clr %fn)
    11401140        __(pxor %fpzero,%fpzero)
    1141         __(pushl rcontext(tcr.save_eflags))
     1141        __(pushl rcontext(tcr.unboxed0))
    11421142        __(popf)
    11431143        __(movl rcontext(tcr.save_vsp),%esp)
     
    41824182        /* preserve state of direction flag */
    41834183        __(pushfl)
    4184         __(popl rcontext(tcr.save_eflags))
     4184        __(popl rcontext(tcr.unboxed0))
    41854185        __(cld)       
    41864186        __(stmxcsr rcontext(tcr.lisp_mxcsr))
     
    42264226        __(fnclex)
    42274227        __endif
    4228 1:      __(pushl rcontext(tcr.save_eflags))
     42281:      __(pushl rcontext(tcr.unboxed0))
    42294229        __(popfl)
    42304230        __(movl rcontext(tcr.save_vsp),%esp)
Note: See TracChangeset for help on using the changeset viewer.