Changeset 655 for GPL/branches/uniaud32-next/include/stacktoflat.h
- Timestamp:
- Jan 24, 2021, 9:19:48 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/stacktoflat.h
r32 r655 26 26 #define __STACKTOFLAT_H__ 27 27 28 #ifdef KEE 29 extern ULONG stacksel; //16 bits stack selector 30 #pragma aux stacksel "stacksel" 31 32 extern ULONG stackbase; //32 bits stackbase 33 #pragma aux stackbase "stackbase" 34 35 #else 36 28 37 extern ULONG TKSSBase; 29 38 #pragma aux TKSSBase "_TKSSBase" … … 33 42 value [eax]; 34 43 35 #ifdef KEE36 extern ULONG stacksel; //16 bits stack selector37 #pragma aux stacksel "stacksel"38 39 extern ULONG stackbase; //32 bits stackbase40 #pragma aux stackbase "stackbase"41 44 #endif 42 43 #ifdef FLATSTACK44 45 45 46 #ifdef KEE … … 49 50 //Convert 16:16 stack based address to 0:32 flat addresss 50 51 #define __Stack16ToFlat(addr) (LINEAR)((((ULONG)addr)&0xffff) + *(ULONG *)TKSSBase) 51 #endif52 53 //stack is already flat54 #define __Stack32ToFlat(addr) (LINEAR)addr55 56 #else57 //Convert 16:16 stack based address to 0:32 flat addresss58 #define __Stack16ToFlat(addr) (LINEAR)((((ULONG)addr)&0xffff) + *(ULONG *)TKSSBase)59 60 //Convert 16:16 stack based address to 0:32 flat addresss61 #define __Stack32ToFlat(addr) (LINEAR)((((ULONG)addr)&0xffff) + *(ULONG *)TKSSBase)62 52 #endif 63 53
Note:
See TracChangeset
for help on using the changeset viewer.