Changeset 13641


Ignore:
Timestamp:
Apr 18, 2010, 11:13:55 AM (9 years ago)
Author:
gb
Message:

use win64 constants/macros in platform-win64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/platform-win64.h

    r13638 r13641  
    4040#define xpMXCSRptr(x) (DWORD *)(&(x->MxCsr))
    4141
    42 #ifdef SOLARIS
    43 #define SIGNUM_FOR_INTN_TRAP SIGSEGV
    44 #ifdef X8664
    45 #define IS_MAYBE_INT_TRAP(info,xp) ((xpGPR(xp,REG_TRAPNO)==0xd)&&((xpGPR(xp,REG_ERR)&7)==2))
    46 #define IS_PAGE_FAULT(info,xp) (xpGPR(xp,REG_TRAPNO)==0xe)
    47 #else
    48 #define IS_MAYBE_INT_TRAP(info,xp) ((xpGPR(xp,TRAPNO)==0xd)&&((xpGPR(xp,ERR)&7)==2))
    49 #define IS_PAGE_FAULT(info,xp) (xpGPR(xp,TRAPNO)==0xe)
    50 #endif
    51 #define SIGRETURN(context) setcontext(context)
    52 #endif
     42
     43#define SIGNUM_FOR_INTN_TRAP SIGSEGV /* Also fake */
     44#define IS_MAYBE_INT_TRAP(info,xp) \
     45  ((info->ExceptionCode == EXCEPTION_ACCESS_VIOLATION) &&       \
     46   (info->ExceptionInformation[0]==0) &&                       \
     47   (info->ExceptionInformation[1]==(ULONG_PTR)(-1L)))
     48#define IS_PAGE_FAULT(info,xp) (1)
     49#define SIGRETURN(context)      /* for now */
    5350
    5451#include "os-windows.h"
Note: See TracChangeset for help on using the changeset viewer.