Ignore:
Timestamp:
Jan 27, 2021, 9:35:47 AM (5 years ago)
Author:
Paul Smedley
Message:

Remove remaining support for non-KEE builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/stacktoflat.h

    r655 r667  
    2626#define __STACKTOFLAT_H__
    2727
    28 #ifdef KEE
    2928extern ULONG stacksel;          //16 bits stack selector
    3029#pragma aux stacksel "stacksel"
     
    3332#pragma aux stackbase "stackbase"
    3433
    35 #else
    36 
    37 extern ULONG TKSSBase;
    38 #pragma aux TKSSBase "_TKSSBase"
    39 
    40 extern ULONG GetTKSSBase();
    41 #pragma aux GetTKSSBase "GetTKSSBase" \
    42   value [eax];
    43 
    44 #endif
    45 
    46 #ifdef KEE
    4734//Convert 16:16 stack based address to 0:32 flat addresss
    4835#define __Stack16ToFlat(addr)   (LINEAR)((ULONG)(addr&0xffff) + stackbase)
    49 #else
    50 //Convert 16:16 stack based address to 0:32 flat addresss
    51 #define __Stack16ToFlat(addr)   (LINEAR)((((ULONG)addr)&0xffff) + *(ULONG *)TKSSBase)
    52 #endif
    5336
    5437// Convert 16:16 pointer to 16:32
     
    10588#define FLATPTR(a)      GETFLATPTR((char FAR48 *)a)
    10689
    107 #ifdef KEE
    10890#define FlatToSel(addr32)       ((stacksel << 16) | (((ULONG)addr32 - stackbase) & 0xffff))
    109 #else
    110 //Only valid for stack based pointer!!
    111 ULONG FlatToSel(ULONG addr32);
    112 #endif
    11391
    11492#endif
Note: See TracChangeset for help on using the changeset viewer.