Changeset 10935


Ignore:
Timestamp:
Oct 1, 2008, 12:18:03 AM (11 years ago)
Author:
gb
Message:

In setup_exception_handler_call(), ensure that the handler will
be called with %es = %ds (the appropriate value for running foreign
oode) on x8632.

In the same function, ensure that the handler will be called with
the direction flag clear.

(Windoes seems to set %es = %ds when calling the "real" handler;
not sure if it clears the DF for us.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/x86-exceptions.c

    r10921 r10935  
    17971797  context->Esp = (DWORD)p;
    17981798  context->Eip = (DWORD)handler;
    1799 #endif
     1799#ifdef WIN32_ES_HACK
     1800  context->SegEs = context->SegDs;
     1801#endif
     1802#endif
     1803  context->EFlags &= ~0x400;  /* clear direction flag */
    18001804}
    18011805
Note: See TracChangeset for help on using the changeset viewer.